BatchProfileAttributeEditor class abstract

Batch's profile data editor. This object is used to transactionally edit profile data. Calls can be chained in a builder-like fashion. Once you're done with your changes, call BatchProfileDataEditor.save to persist your changes.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToArray(String key, String tag) BatchProfileAttributeEditor
Add a string value in the specified array attribute. If empty, the array will automatically be created.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttribute(String key) BatchProfileAttributeEditor
Delete an attribute using its key.
removeFromArray(String collection, String tag) BatchProfileAttributeEditor
Delete a string value from the specified array attribute.
save() → void
Save all of the pending changes. This action cannot be undone.
setBooleanAttribute(String key, bool value) BatchProfileAttributeEditor
Set a boolean attribute for a key.
setDateTimeAttribute(String key, DateTime value) BatchProfileAttributeEditor
Set a Date attribute for a key.
setDoubleAttribute(String key, double value) BatchProfileAttributeEditor
Set a double attribute for a key.
setEmailAddress(String? email) BatchProfileAttributeEditor
Set the profile email address.
setEmailMarketingSubscription(BatchEmailSubscriptionState state) BatchProfileAttributeEditor
Set the profile email marketing subscription state
setIntegerAttribute(String key, int value) BatchProfileAttributeEditor
Set an integer attribute for a key.
setLanguage(String? language) BatchProfileAttributeEditor
Set the application language. Overrides Batch's automatically detected value.
setPhoneNumber(String? phoneNumber) BatchProfileAttributeEditor
Set the profile phone number.
setRegion(String? region) BatchProfileAttributeEditor
Set the application region. Overrides Batch's automatically detected value.
setSMSMarketingSubscription(BatchSMSSubscriptionState state) BatchProfileAttributeEditor
Set the profile SMS marketing subscription state.
setStringAttribute(String key, String value) BatchProfileAttributeEditor
Set a string attribute for a key.
setStringListAttribute(String key, List<String> value) BatchProfileAttributeEditor
Set a String List attribute for a key.
setUrlAttribute(String key, Uri value) BatchProfileAttributeEditor
Set a URL attribute for a key.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited