public DlnaForthField()
 {
     _parameters         = new List <DlnaForthFieldParam>();
     ProfileParameter    = new ProfileParam();
     OperationsParameter = new OperationsParam();
     _parameters.Add(OperationsParameter);
     PlaySpeedParameter = new PlaySpeedParam();
     _parameters.Add(PlaySpeedParameter);
     ConversionParameter = new ConversionParam();
     _parameters.Add(ConversionParameter);
     FlagsParameter = new FlagsParam();
     _parameters.Add(FlagsParameter);
 }
 public DlnaForthField()
 {
     _parameters = new List<DlnaForthFieldParam>();
     ProfileParameter = new ProfileParam();
     OperationsParameter = new OperationsParam();
     _parameters.Add(OperationsParameter);
     PlaySpeedParameter = new PlaySpeedParam();
     _parameters.Add(PlaySpeedParameter);
     ConversionParameter = new ConversionParam();
     _parameters.Add(ConversionParameter);
     FlagsParameter = new FlagsParam();
     _parameters.Add(FlagsParameter);
 }
Esempio n. 3
0
 //Search Friend
 public int SearchFriend(string searchKey = "", int playerId = 0, string token = "")
 {
     if (ParseToken(playerId, token))
     {
         ProfileParam param = new ProfileParam();
         param.player_id  = apiPlayerId;
         param.token      = apiToken;
         param.search_key = searchKey;
         string paramJson = JsonUtility.ToJson(param);
         API    api       = new API("searchfriend.php", "RSearchFriend", paramJson, 1);
         param = null; paramJson = "";
         StartCoroutine(Congest.SendPOST(this, api));
         return(api.seed);
     }
     return(0);
 }
Esempio n. 4
0
 public int GetProfile(int friendId = 0, int playerId = 0, string token = "")
 {
     if (ParseToken(playerId, token))
     {
         ProfileParam param = new ProfileParam();
         param.player_id = apiPlayerId;
         param.token     = apiToken;
         param.friend_id = friendId;
         string paramJson = JsonUtility.ToJson(param);
         API    api       = new API("getprofile.php", "RGetProfile", paramJson, 1);
         param = null; paramJson = "";
         StartCoroutine(Congest.SendPOST(this, api));
         return(api.seed);
     }
     return(0);
 }