LCStatus class Null safety

LeanCloud Status

Inheritance

Constructors

LCStatus()

Properties

acl LCACL?
Gets the ACL for this object.
read / write, inherited
className String?
The class name of the object. [...]
read-only, inherited
createdAt DateTime?
Gets the object's createdAt attribute.
read-only, inherited
data Map<String, dynamic>
Content.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
inboxType String
The type of inbox. [...]
read / write
messageId int?
Id.
read / write
objectId String?
Gets the object's objectId.
read-only, inherited
query LCQuery<LCObject>?
A query for targets of status.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt DateTime?
Gets the object's updatedAt attribute.
read-only, inherited

Methods

add(String key, dynamic value) → void
Atomically add value to the end of the array key.
inherited
addAll(String key, Iterable values) → void
Atomically add values to the end of the array key.
inherited
addAllUnique(String key, Iterable values) → void
Atomically add values to the array key, only if not already present. [...]
inherited
addRelation(String key, LCObject value) → void
Adds a relation value to key.
inherited
addUnique(String key, dynamic value) → void
Atomically add value to the array key, only if not already present. [...]
inherited
decrement(String key, num amount) → void
Atomically decrements the value of the given key with amount.
inherited
delete() Future
Deletes this status. [...]
override
fetch({Iterable<String>? keys, Iterable<String>? includes}) Future<LCObject>
Fetches the object from the cloud. [...]
inherited
increment(String key, num amount) → void
Atomically increments the value of the given key with amount.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(String key, dynamic value) → void
Atomically remove all value from the array key.
inherited
removeAll(String key, Iterable values) → void
Atomically remove all values from the array key.
inherited
removeRelation(String key, LCObject value) → void
Removes relation value to key.
inherited
save({bool fetchWhenSave = false, LCQuery<LCObject>? query}) Future<LCObject>
Saves the object to the cloud. [...]
inherited
send() Future<LCStatus>
Send a status to users matching a LCQuery.
toString() String
Serializes this LCObject to a JSON string.
inherited
unset(String key) → void
Removes the key. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](String key) → dynamic
Gets the value of key.
inherited
operator []=(String key, dynamic value) → void
Sets key to value.
inherited

Static Methods

getCount({String? inboxType}) Future<LCStatusCount>
Counts the statuses of inboxType.
resetUnreadCount({String? inboxType}) Future
Resets unread count of inboxType.
sendPrivately(LCStatus status, String targetId) Future<LCStatus>
Send a status from current signined user to private inbox of targetId.
sendToFollowers(LCStatus status) Future<LCStatus>
Send a status to current signined user's followers.

Constants

ClassName → const String
'_Status'
InboxTypeDefault → const String
Public, shown on followees' timeline.
'default'
InboxTypeKey → const String
'inboxType'
InboxTypePrivate → const String
Private.
'private'
MessageIdKey → const String
'messageId'
OwnerKey → const String
'owner'
SourceKey → const String
Keys
'source'