docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RelationshipOptions

    Defines the options to query the relationship data.

    Inheritance
    object
    RelationshipOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Friends.Options
    Assembly: Unity.Services.Friends.dll
    Syntax
    public class RelationshipOptions

    Methods

    WithMemberPresence(bool)

    Defines whether or not to attach presence data to the member object

    Declaration
    public RelationshipOptions WithMemberPresence(bool withPresence)
    Parameters
    Type Name Description
    bool withPresence

    Whether or not to attach presence data

    Returns
    Type Description
    RelationshipOptions

    The RelationshipOptions with the updated presence flag

    WithMemberProfile(bool)

    Defines whether or not to attach profile data to the member object

    Declaration
    public RelationshipOptions WithMemberProfile(bool withProfile)
    Parameters
    Type Name Description
    bool withProfile

    whether or not to attach profile data

    Returns
    Type Description
    RelationshipOptions

    The RelationshipOptions with the updated profile flag

    WithPaging(PagingOptions)

    Defines the paging options for the results

    Declaration
    public RelationshipOptions WithPaging(PagingOptions pagingOptions)
    Parameters
    Type Name Description
    PagingOptions pagingOptions

    Options to define the paging of the results

    Returns
    Type Description
    RelationshipOptions

    Itself

    WithTypes(RelationshipType)

    Defines the types of relationships to return as part of the query

    Declaration
    public RelationshipOptions WithTypes(RelationshipType relationshipType)
    Parameters
    Type Name Description
    RelationshipType relationshipType

    the relationship types to query

    Returns
    Type Description
    RelationshipOptions

    The RelationshipOptions with updated types

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)