UpdateVerbBuilder class
Update builder generates a command to update value for a key atKey in the secondary server of sharedBy. Use getBuilder method if you want to convert command to a builder.
//setting a public value for the key 'phone'
var updateBuilder = UpdateVerbBuilder()..isPublic=true
..key='phone'
..sharedBy='bob'
..value='+1-1234';
//@bob setting a value for the key 'phone' to share with @alice
var updateBuilder = UpdateVerbBuilder()
..sharedWith=’alice’
..key='phone'
..sharedBy='bob'
..value='+1-5678';
- Implemented types
Constructors
Properties
- atKey ↔ String?
-
Key that represents a user's information. e.g phone, location, email etc.,
getter/setter pair
- ccd ↔ bool?
-
boolean variable to enable/disable cascade delete
getter/setter pair
- dataSignature ↔ String?
-
Signed signature with atsign's private key, if isPublic is true
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBinary ↔ bool?
-
getter/setter pair
- isEncrypted ↔ bool?
-
boolean variable to indicate if the value is encrypted.
True indicates encrypted value
False indicates unencrypted value
getter/setter pair
- isJson ↔ bool
-
getter/setter pair
- isPublic ↔ bool
-
if isPublic is true, then atKey is accessible by all atSigns.
if isPublic is false, then atKey is accessible either by sharedWith or sharedBy
getter/setter pair
- operation ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
AtSign of the client user calling this builder.
getter/setter pair
-
getter/setter pair
-
AtSign to whom atKey has to be shared.
getter/setter pair
- ttb ↔ int?
-
time in milliseconds after which atKey becomes active.
getter/setter pair
- ttl ↔ int?
-
time in milliseconds after which atKey expires.
getter/setter pair
- ttr ↔ int?
-
time in milliseconds to refresh atKey.
getter/setter pair
- value ↔ dynamic
-
Value of the key typically in string format. Images, files, etc.,
must be converted to unicode string before storing.
getter/setter pair
Methods
-
buildCommand(
) → String -
Build the @ command to be sent to remote secondary for execution.
override
-
buildCommandForMeta(
) → String -
checkParams(
) → bool -
Checks whether all params required by the verb builder are set. Returns false if
required params are not set.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getBuilder(
String command) → UpdateVerbBuilder?