示例#1
0
 //for team event pop
 //accept invitation and try to get all invitations agatin
 public void AcceptTeamInvitation(Tap5050TeamInvitation invitationinfo)
 {
     Dictionary<string, string> acceptinvitaitonsparameters = new Dictionary<string, string> ();
     acceptinvitaitonsparameters.Add ("token_id", GlobalVariable.token_id);
     acceptinvitaitonsparameters.Add ("member_id", invitationinfo.group_member_id);
     App.INSTANCE.networknamager.AcceptTeamInvitation (acceptinvitaitonsparameters, (Tap5050WebResponse response) => {
         if (response.available) {
             var result=(Tap5050Result)response.parsedobject;
             if(result.result_success.Equals("Y")){
             //
             }else{
                 ShowNextPop();
             }
         }
         else{
             ShowNextPop();
         }
     });
 }
示例#2
0
 public void IgnoreTeamInvitation(Tap5050TeamInvitation invitationinfo)
 {
     ShowNextPop();
 }
示例#3
0
 public void DeclineTeamInvitation(Tap5050TeamInvitation invitationinfo)
 {
     Dictionary<string, string> acceptinvitaitonsparameters = new Dictionary<string, string> ();
     acceptinvitaitonsparameters.Add ("token_id", GlobalVariable.token_id);
     acceptinvitaitonsparameters.Add ("member_id", invitationinfo.group_member_id);
     App.INSTANCE.networknamager.DeleteTeamInvitation (acceptinvitaitonsparameters, (Tap5050WebResponse response) => {
         ShowNextPop();
     });
 }