public virtual void LoadInfo(SocialQuery query, string[] userIDs, Action <ISocialUser[]> callback) { var ids = this.PrepareIds(userIDs); new SocialHttp( this.moduleSettings, query.url, this.moduleSettings.Prepare( (this.socialModule.auth as IAuth).token, query.parameters, new Dictionary <string, string>() { { "USER_IDS", ids } } ), query.method, (data, result) => { if (UnityEngine.UI.Windows.Constants.LOGS_ENABLED == true) { UnityEngine.Debug.Log(result + " :: " + data); } var list = this.socialModule.profile.user.ParseUsers(data); callback(list.ToArray()); }); }
public virtual void Authenticate(SocialQuery query, Action <bool> callback) { new SocialHttp( this.moduleSettings, query.url, this.moduleSettings.Prepare((this.socialModule.auth as IAuth).token, query.parameters), query.method, (data, result) => { // TODO: Parse token here Debug.Log(result + " :: " + data); // Add call auth with token // this.Authenticate(token, callback); }); }
public virtual void LoadInfo(SocialQuery query, Action <bool> callback) { new SocialHttp( this.moduleSettings, query.url, this.moduleSettings.Prepare((this.socialModule.auth as IAuth).token, query.parameters), query.method, (data, result) => { Debug.Log(result + " :: " + data); this.socialModule.profile.user.ParseFriendsData(this.socialModule, data); callback(result); }); }
public virtual void Authenticate(SocialQuery query, Action <bool> callback) { new SocialHttp( this.moduleSettings, query.url, this.moduleSettings.Prepare((this.socialModule.auth as IAuth).token, query.parameters), query.method, (data, result) => { // TODO: Parse token here if (UnityEngine.UI.Windows.Constants.LOGS_ENABLED == true) { UnityEngine.Debug.Log(result + " :: " + data); } // Add call auth with token // this.Authenticate(token, callback); }); }
public virtual void LoadInfo(SocialQuery query, Action <bool> callback) { new SocialHttp( this.moduleSettings, query.url, this.moduleSettings.Prepare((this.socialModule.auth as IAuth).token, query.parameters), query.method, (data, result) => { if (UnityEngine.UI.Windows.Constants.LOGS_ENABLED == true) { UnityEngine.Debug.Log(result + " :: " + data); } this.user.ParseData(this.socialModule, data); callback(result); }); }