Class PermissionOffer
Objects of this class are used to offer permissions to owned Realms.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public class PermissionOffer
Properties
| Improve this Doc View SourceAccessLevel
Gets a value indicating whether the receiver of this offer will be able to read from the Realm.
Declaration
[JsonProperty("accessLevel")]
public AccessLevel AccessLevel { get; }
Property Value
Type | Description |
---|---|
AccessLevel |
|
CreatedAt
Gets the creation time of this object.
Declaration
[JsonProperty("createdAt")]
public DateTimeOffset CreatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | A DateTimeOffset indicating the object's creation date and time. |
ExpiresAt
Gets the expiration date and time of the offer.
Declaration
[JsonProperty("expiresAt")]
public DateTimeOffset? ExpiresAt { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTimeOffset> | If |
MayManage
Gets a value indicating whether the receiver of this offer will be able to manage access rights for others.
Declaration
[Obsolete("Use AccessLevel >= AccessLevel.Admin instead")]
public bool MayManage { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
MayRead
Gets a value indicating whether the receiver of this offer will be able to read data from the Realm.
Declaration
[Obsolete("Use AccessLevel >= AccessLevel.Read instead")]
public bool MayRead { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
MayWrite
Gets a value indicating whether the receiver of this offer will be able to write to the Realm.
Declaration
[Obsolete("Use AccessLevel >= AccessLevel.Write instead")]
public bool MayWrite { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
RealmPath
Gets the path of the Realm to offer permissions to.
Declaration
[JsonProperty("realmPath")]
public string RealmPath { get; }
Property Value
Type | Description |
---|---|
String |
Token
Gets the token that can be used to offer the permissions defined in this object to another user.
Declaration
[JsonProperty("token")]
public string Token { get; }
Property Value
Type | Description |
---|---|
String | A string, set by the server, that can be used in InvalidateOfferAsync(String) or AcceptPermissionOfferAsync(String). |