LeanCloud C# SDK
|
LeanCloud Role, a group of users for the purposes of granting permissions. More...
Public Member Functions | |
LCRole () | |
Constructs a LCRole. More... | |
![]() | |
void | DisableBeforeHook () |
Disable hooks before saving / updating / deleting LCObject. More... | |
void | DisableAfterHook () |
Disable hooks after saving / updating / deleting LCObject. More... | |
void | IgnoreHook (string hookName) |
Ignores the hook for this LCObject. More... | |
ReadOnlyCollection< string > | GetUpdatedKeys () |
Gets the updated keys of this LCObject. More... | |
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. More... | |
void | Unset (string key) |
Removes the key. More... | |
void | AddRelation (string key, LCObject value) |
Creates a LCRelation<T> value for a key. More... | |
void | RemoveRelation (string key, LCObject value) |
Removes a LCRelation<T> value for a key. More... | |
void | Increment (string key, object value) |
Atomically increments the value of the given key with amount. More... | |
void | Add (string key, object value) |
Atomically adds value to the end of the array key. More... | |
void | AddAll (string key, IEnumerable values) |
Atomically adds values to the end of the array key. More... | |
void | AddUnique (string key, object value) |
Atomically adds value to the array key, only if not already present. More... | |
void | AddAllUnique (string key, IEnumerable values) |
Atomically adds values to the array key, only if not already present. More... | |
void | Remove (string key, object value) |
Atomically removes all value from the array key. More... | |
void | RemoveAll (string key, IEnumerable values) |
Atomically removes all values from the array key. More... | |
async Task< LCObject > | Save (bool fetchWhenSave=false, LCQuery< LCObject > query=null) |
Saves this object to the cloud. More... | |
async Task | Delete () |
Deletes this object in the cloud. More... | |
async Task< LCObject > | Fetch (IEnumerable< string > keys=null, IEnumerable< string > includes=null) |
Fetches this object from the cloud. More... | |
override string | ToString () |
Serializes this LCObject to a JSON string. More... | |
void | Merge (LCObjectData objectData) |
Static Public Member Functions | |
static LCRole | Create (string name, LCACL acl) |
Constructs a LCRole with a name and a LCACL. More... | |
static LCQuery< LCRole > | GetQuery () |
Constructs a LCQuery for this role. More... | |
![]() | |
static LCObject | CreateWithoutData (string className, string objectId) |
Creates a reference to an existing LCObject. More... | |
static LCObject | Create (string className) |
Creates a new LCObject. More... | |
static async Task< List< LCObject > > | SaveAll (IEnumerable< LCObject > objects) |
Saves each object in the provided list. More... | |
static async Task | DeleteAll (IEnumerable< LCObject > objects) |
Deletes each object in the provided list. More... | |
static async Task< IEnumerable< LCObject > > | FetchAll (IEnumerable< LCObject > objects) |
Fetches all of the objects in the provided list. More... | |
static void | RegisterSubclass< T > (string className, Func< T > constructor) |
Registers a custom subclass type with LeanCloud SDK, enabling strong-typing of those LCObjects whenever they appear. More... | |
static LCObject | ParseObject (string json) |
Deserializes a JSON string to a LCObject. More... | |
Static Public Attributes | |
const string | CLASS_NAME = "_Role" |
Properties | |
string | Name [get, set] |
The name of a LCRole. More... | |
LCRelation< LCRole > | Roles [get] |
Child roles. More... | |
LCRelation< LCUser > | Users [get] |
Child users. More... | |
![]() | |
string | ClassName [get] |
Gets the class name for the LCObject. More... | |
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. More... | |
DateTime | CreatedAt [get] |
Gets the creation time of this object in the cloud. More... | |
DateTime | UpdatedAt [get] |
Gets the latest update time of this object in the cloud. More... | |
LCACL | ACL [get, set] |
Gets or sets the LCACL governing this object. More... | |
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 ('_'). More... | |
LeanCloud Role, a group of users for the purposes of granting permissions.
|
inline |
Constructs a LCRole.
Constructs a LCQuery for this role.
|
static |
|
getset |
The name of a LCRole.
|
get |
Child roles.
|
get |
Child users.