CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Properties | Public Member Functions | Public Attributes | List of all members
CotcSdk.SocialNetworkFriend Class Reference

Description

Data about a friend on the social network. The most important field is the id, which allows to recognize the gamer uniquely among the given social network.

Properties

GamerInfo ClanInfo [get]
 Additional info that might have been enriched by the CotC servers. You should never guess or create this info by yourself. More...
 

Public Member Functions

 SocialNetworkFriend (string id, string firstName, string lastName, string name)
 User constructor. More...
 
 SocialNetworkFriend ()
 Default constructor for convenience. More...
 
 SocialNetworkFriend (Bundle serverData)
 Build from existing JSON data. More...
 

Public Attributes

string Id
 Required. The ID given by the social network, allowing to uniquely identify the friend in question. More...
 
string FirstName
 If you have either a name (composite of name/first name regardless of order), either the two components (name, first name), pass them here. You should pass at least one of these. More...
 

Constructor & Destructor Documentation

◆ SocialNetworkFriend() [1/3]

CotcSdk.SocialNetworkFriend.SocialNetworkFriend ( string  id,
string  firstName,
string  lastName,
string  name 
)

User constructor.

◆ SocialNetworkFriend() [2/3]

CotcSdk.SocialNetworkFriend.SocialNetworkFriend ( )

Default constructor for convenience.

◆ SocialNetworkFriend() [3/3]

CotcSdk.SocialNetworkFriend.SocialNetworkFriend ( Bundle  serverData)

Build from existing JSON data.

Property Documentation

◆ ClanInfo

GamerInfo CotcSdk.SocialNetworkFriend.ClanInfo
get

Additional info that might have been enriched by the CotC servers. You should never guess or create this info by yourself.

Member Data Documentation

◆ FirstName

string CotcSdk.SocialNetworkFriend.FirstName

If you have either a name (composite of name/first name regardless of order), either the two components (name, first name), pass them here. You should pass at least one of these.

◆ Id

string CotcSdk.SocialNetworkFriend.Id

Required. The ID given by the social network, allowing to uniquely identify the friend in question.