private GP_Invite InviteFromString(string[] storeData, int offset)
    {
        GP_Invite inv = new GP_Invite();

        inv.Id = storeData[0 + offset];
        inv.CreationTimestamp = System.Convert.ToInt64(storeData[1 + offset]);
        inv.InvitationType    = (GP_InvitationType)System.Convert.ToInt32(storeData[2 + offset]);
        inv.Variant           = System.Convert.ToInt32(storeData [3 + offset]);
        inv.Participant       = GooglePlayManager.ParseParticipanData(storeData, 4 + offset);
        return(inv);
    }
Example #2
0
    private void OnInvitationReceived(string data)
    {
        string[] storeData = data.Split(AndroidNative.DATA_SPLITTER [0]);


        GP_Invite inv = new GP_Invite();

        inv.Id = storeData[0];
        inv.CreationTimestamp = System.Convert.ToInt64(storeData[1]);
        inv.InvitationType    = (GP_InvitationType)System.Convert.ToInt32(storeData[2]);
        inv.Variant           = System.Convert.ToInt32(storeData [3]);
        inv.Participant       = GooglePlayManager.ParseParticipanData(storeData, 4);

        if (inv.InvitationType == GP_InvitationType.INVITATION_TYPE_REAL_TIME)
        {
            _invitations.Add(inv);
            ActionInvitationReceived(inv);
        }
    }