Class PermissionOffer
Objects of this class are used to offer permissions to owned Realms.
They are created exclusively by the client and are processed by the server
as indicated by the status fields.
Inheritance
PermissionOffer
Assembly: Realm.Sync.dll
Syntax
public class PermissionOffer : RealmObject, INotifyPropertyChanged, ISchemaSource, IThreadConfined, NotificationsHelper.INotifiable, IPermissionObject, IStatusObject
Properties
|
Improve this Doc
View Source
CreatedAt
Declaration
[MapTo("createdAt")]
public DateTimeOffset CreatedAt { get; }
Property Value
|
Improve this Doc
View Source
ErrorCode
Declaration
public ErrorCode? ErrorCode { get; }
Property Value
|
Improve this Doc
View Source
ExpiresAt
Gets the expiration date and time of the offer.
Declaration
[MapTo("expiresAt")]
public DateTimeOffset? ExpiresAt { get; }
Property Value
Type |
Description |
Nullable<DateTimeOffset> |
If null , the offer will never expire. Otherwise, the offer may not be consumed past the expiration date.
|
|
Improve this Doc
View Source
Id
Declaration
[PrimaryKey]
[Required]
[MapTo("id")]
public string Id { get; }
Property Value
|
Improve this Doc
View Source
MayManage
Gets a value indicating whether the receiver of this offer will be able to manage access rights for others.
Declaration
[MapTo("mayManage")]
public bool MayManage { get; }
Property Value
Type |
Description |
Boolean |
true to allow the receiver to offer others access to the Realm.
|
|
Improve this Doc
View Source
MayRead
Gets a value indicating whether the receiver of this offer will be able to read from the Realm.
Declaration
[MapTo("mayRead")]
public bool MayRead { get; }
Property Value
Type |
Description |
Boolean |
true to allow the receiver to read data from the Realm.
|
|
Improve this Doc
View Source
MayWrite
Gets a value indicating whether the receiver of this offer will be able to write to the Realm.
Declaration
[MapTo("mayWrite")]
public bool MayWrite { get; }
Property Value
Type |
Description |
Boolean |
true to allow the receiver to write data to the Realm.
|
|
Improve this Doc
View Source
RealmUrl
Gets the url of the Realm to offer permissions to.
Declaration
[MapTo("realmUrl")]
[Required]
public string RealmUrl { get; }
Property Value
|
Improve this Doc
View Source
Status
Declaration
public ManagementObjectStatus Status { get; }
Property Value
|
Improve this Doc
View Source
StatusCode
Declaration
[MapTo("statusCode")]
public int? StatusCode { get; set; }
Property Value
|
Improve this Doc
View Source
StatusMessage
Declaration
[MapTo("statusMessage")]
public string StatusMessage { get; }
Property Value
|
Improve this Doc
View Source
Token
Gets the token that can be used to offer the permissions defined in this object to another user.
Declaration
[MapTo("token")]
[Indexed]
public string Token { get; }
Property Value
|
Improve this Doc
View Source
UpdatedAt
Declaration
[MapTo("updatedAt")]
public DateTimeOffset UpdatedAt { get; }
Property Value
Methods
|
Improve this Doc
View Source
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
Type |
Name |
Description |
String |
propertyName |
|
Overrides
Implements