v1.0.0
Latest
2020.3+

Class RelationshipOptions

Defines the options to query the relationship data.

Inheritance
RelationshipOptions
Namespace: Unity.Services.Friends.Options
Syntax
public class RelationshipOptions

Methods

WithMemberPresence(Boolean)

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

Declaration
public RelationshipOptions WithMemberPresence(bool withPresence)
Parameters
TypeNameDescription
BooleanwithPresence

Whether or not to attach presence data

Returns
TypeDescription
RelationshipOptions

The RelationshipOptions with the updated presence flag

WithMemberProfile(Boolean)

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

Declaration
public RelationshipOptions WithMemberProfile(bool withProfile)
Parameters
TypeNameDescription
BooleanwithProfile

whether or not to attach profile data

Returns
TypeDescription
RelationshipOptions

The RelationshipOptions with the updated profile flag

WithPaging(PagingOptions)

Defines the paging options for the results

Declaration
public RelationshipOptions WithPaging(PagingOptions pagingOptions)
Parameters
TypeNameDescription
PagingOptionspagingOptions

Options to define the paging of the results

Returns
TypeDescription
RelationshipOptions

Itself

WithTypes(RelationshipType)

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

Declaration
public RelationshipOptions WithTypes(RelationshipType relationshipType)
Parameters
TypeNameDescription
RelationshipTyperelationshipType

the relationship types to query

Returns
TypeDescription
RelationshipOptions

The RelationshipOptions with updated types