Show / Hide Table of Contents

    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
    Object
    RealmObject
    PermissionOffer
    Implements
    ISchemaSource
    IPermissionObject
    Inherited Members
    RealmObject.PropertyChanged
    RealmObject.IsManaged
    RealmObject.IsValid
    RealmObject.Realm
    RealmObject.ObjectSchema
    RealmObject.BacklinksCount
    RealmObject.Equals(Object)
    RealmObject.RaisePropertyChanged(String)
    RealmObject.OnManaged()
    Namespace: Realms.Sync
    Assembly: Realm.Sync.dll
    Syntax
    public class PermissionOffer : RealmObject, ISchemaSource, IThreadConfined, NotificationsHelper.INotifiable, IPermissionObject, IStatusObject
    Remarks

    When offering permissions, you should create the offer and add it to the User's Management Realm. Then you should subscribe to PropertyChanged to be notified when the server has processed the request. Once the request has been processed, the Status, StatusMessage, and ErrorCode will be updated accordingly. If the request has been processed successfully, the Token will be populated and you can share it with users you wish to grant permissions to. If the request has failed, the StatusMessage will be updated with relevant information about the failure and ErrorCode will be set to a non-null value.

    Properties

    | Improve this Doc View Source

    CreatedAt

    Declaration
    public DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    ErrorCode

    Declaration
    public ErrorCode? ErrorCode { get; }
    Property Value
    Type Description
    Nullable<ErrorCode>
    | Improve this Doc View Source

    ExpiresAt

    Gets the expiration date and time of the offer.

    Declaration
    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
    public string Id { get; }
    Property Value
    Type Description
    String
    | 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
    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
    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
    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
    public string RealmUrl { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Status

    Declaration
    public ManagementObjectStatus Status { get; }
    Property Value
    Type Description
    ManagementObjectStatus
    | Improve this Doc View Source

    StatusCode

    Declaration
    public int? StatusCode { get; set; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    StatusMessage

    Declaration
    public string StatusMessage { get; }
    Property Value
    Type Description
    String
    | 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
    public string Token { get; }
    Property Value
    Type Description
    String

    A string, set by the server, that can be used to create a PermissionOfferResponse.

    | Improve this Doc View Source

    UpdatedAt

    Declaration
    public DateTimeOffset UpdatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset

    Methods

    | Improve this Doc View Source

    OnPropertyChanged(String)

    Declaration
    protected override void OnPropertyChanged(string propertyName)
    Parameters
    Type Name Description
    String propertyName

    Implements

    ISchemaSource
    IPermissionObject
    • Improve this Doc
    • View Source
    Back to top Copyright © 2017 Realm
    Generated by DocFX