LeanCloud C# SDK
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
LeanCloud.Storage.LCStatus Class Reference

LCStatus is a local representation of a status in LeanCloud. More...

Inheritance diagram for LeanCloud.Storage.LCStatus:
LeanCloud.Storage.LCObject

Public Member Functions

 LCStatus ()
 Constructs a LCStatus.
 
async Task< LCStatusSend ()
 Sends this status.
 
new async Task Delete ()
 Deletes this status.
 
- Public Member Functions inherited from LeanCloud.Storage.LCObject
void DisableBeforeHook ()
 Disable hooks before saving / updating / deleting LCObject.
 
void DisableAfterHook ()
 Disable hooks after saving / updating / deleting LCObject.
 
void IgnoreHook (string hookName)
 Ignores the hook for this LCObject.
 
ReadOnlyCollection< string > GetUpdatedKeys ()
 Gets the updated keys of this LCObject.
 
 LCObject (string className)
 Constructs a new LCObject with no data in it. A LCObject constructed in this way will not have an ObjectedId and will not persist in the cloud until Save(bool, LCQuery<LCObject>)) is called.
 
void Unset (string key)
 Removes the key.
 
void AddRelation (string key, LCObject value)
 Creates a LCRelation<T> value for a key.
 
void RemoveRelation (string key, LCObject value)
 Removes a LCRelation<T> value for a key.
 
void Increment (string key, object value)
 Atomically increments the value of the given key with amount.
 
void Add (string key, object value)
 Atomically adds value to the end of the array key.
 
void AddAll (string key, IEnumerable values)
 Atomically adds values to the end of the array key.
 
void AddUnique (string key, object value)
 Atomically adds value to the array key, only if not already present.
 
void AddAllUnique (string key, IEnumerable values)
 Atomically adds values to the array key, only if not already present.
 
void Remove (string key, object value)
 Atomically removes all value from the array key.
 
void RemoveAll (string key, IEnumerable values)
 Atomically removes all values from the array key.
 
async Task< LCObjectSave (bool fetchWhenSave=false, LCQuery< LCObject > query=null)
 Saves this object to the cloud.
 
async Task Delete ()
 Deletes this object in the cloud.
 
async Task< LCObjectFetch (IEnumerable< string > keys=null, IEnumerable< string > includes=null)
 Fetches this object from the cloud.
 
override string ToString ()
 Serializes this LCObject to a JSON string.
 
void Merge (LCObjectData objectData)
 

Static Public Member Functions

static async Task< LCStatusSendToFollowers (LCStatus status)
 Sends the status to the followers of this user.
 
static async Task< LCStatusSendPrivately (LCStatus status, string targetId)
 Sends the status to the user with targetId in private.
 
static async Task< LCStatusCountGetCount (string inboxType)
 Gets the count of the status with inboxType.
 
static async Task ResetUnreadCount (string inboxType=null)
 Resets the count of the status to be zero.
 
- Static Public Member Functions inherited from LeanCloud.Storage.LCObject
static LCObject CreateWithoutData (string className, string objectId)
 Creates a reference to an existing LCObject.
 
static LCObject Create (string className)
 Creates a new LCObject.
 
static async Task< List< LCObject > > SaveAll (IEnumerable< LCObject > objects)
 Saves each object in the provided list.
 
static async Task DeleteAll (IEnumerable< LCObject > objects)
 Deletes each object in the provided list.
 
static async Task< IEnumerable< LCObject > > FetchAll (IEnumerable< LCObject > objects)
 Fetches all of the objects in the provided list.
 
static void RegisterSubclass< T > (string className, Func< T > constructor, string endpoint=null)
 Registers a custom subclass type with LeanCloud SDK, enabling strong-typing of those LCObjects whenever they appear.
 
static LCObject ParseObject (string json)
 Deserializes a JSON string to a LCObject.
 
static string GetClassEndpoint (string className)
 

Static Public Attributes

const string CLASS_NAME = "_Status"
 
const string ENDPOINT = "statuses"
 
const string InboxTypeDefault = "default"
 Public, shown on followees' timeline.
 
const string InboxTypePrivate = "private"
 Private.
 
const string SourceKey = "source"
 Keys.
 
const string InboxTypeKey = "inboxType"
 
const string OwnerKey = "owner"
 
const string MessageIdKey = "messageId"
 

Properties

int MessageId [get, set]
 The id of this status.
 
string InboxType [get, set]
 The inboxType of this status.
 
Dictionary< string, object > Data [get, set]
 The data of this status.
 
- Properties inherited from LeanCloud.Storage.LCObject
string ClassName [get]
 Gets the class name for the LCObject.
 
string ObjectId [get]
 Gets the object id. An object id is assigned as soon as an object is saved to the server. The combination of a ClassName and an ObjectId uniquely identifies an object in your application.
 
DateTime CreatedAt [get]
 Gets the creation time of this object in the cloud.
 
DateTime UpdatedAt [get]
 Gets the latest update time of this object in the cloud.
 
LCACL ACL [get, set]
 Gets or sets the LCACL governing this object.
 
bool IsDirty [get, set]
 
object this[string key] [get, set]
 Gets or sets a value on the object. It is forbidden to name keys with a leading underscore ('_').
 

Detailed Description

LCStatus is a local representation of a status in LeanCloud.

Constructor & Destructor Documentation

◆ LCStatus()

LeanCloud.Storage.LCStatus.LCStatus ( )
inline

Constructs a LCStatus.

Member Function Documentation

◆ Delete()

new async Task LeanCloud.Storage.LCStatus.Delete ( )
inline

Deletes this status.

Returns

◆ GetCount()

static async Task< LCStatusCount > LeanCloud.Storage.LCStatus.GetCount ( string  inboxType)
inlinestatic

Gets the count of the status with inboxType.

Parameters
inboxType
Returns

◆ ResetUnreadCount()

static async Task LeanCloud.Storage.LCStatus.ResetUnreadCount ( string  inboxType = null)
inlinestatic

Resets the count of the status to be zero.

Parameters
inboxType
Returns

◆ Send()

async Task< LCStatus > LeanCloud.Storage.LCStatus.Send ( )
inline

Sends this status.

Returns

◆ SendPrivately()

static async Task< LCStatus > LeanCloud.Storage.LCStatus.SendPrivately ( LCStatus  status,
string  targetId 
)
inlinestatic

Sends the status to the user with targetId in private.

Parameters
status
targetId
Returns

◆ SendToFollowers()

static async Task< LCStatus > LeanCloud.Storage.LCStatus.SendToFollowers ( LCStatus  status)
inlinestatic

Sends the status to the followers of this user.

Parameters
status
Returns

Member Data Documentation

◆ CLASS_NAME

const string LeanCloud.Storage.LCStatus.CLASS_NAME = "_Status"
static

◆ ENDPOINT

const string LeanCloud.Storage.LCStatus.ENDPOINT = "statuses"
static

◆ InboxTypeDefault

const string LeanCloud.Storage.LCStatus.InboxTypeDefault = "default"
static

Public, shown on followees' timeline.

◆ InboxTypeKey

const string LeanCloud.Storage.LCStatus.InboxTypeKey = "inboxType"
static

◆ InboxTypePrivate

const string LeanCloud.Storage.LCStatus.InboxTypePrivate = "private"
static

Private.

◆ MessageIdKey

const string LeanCloud.Storage.LCStatus.MessageIdKey = "messageId"
static

◆ OwnerKey

const string LeanCloud.Storage.LCStatus.OwnerKey = "owner"
static

◆ SourceKey

const string LeanCloud.Storage.LCStatus.SourceKey = "source"
static

Keys.

Property Documentation

◆ Data

Dictionary<string, object> LeanCloud.Storage.LCStatus.Data
getset

The data of this status.

◆ InboxType

string LeanCloud.Storage.LCStatus.InboxType
getset

The inboxType of this status.

◆ MessageId

int LeanCloud.Storage.LCStatus.MessageId
getset

The id of this status.


The documentation for this class was generated from the following file: