Ejemplo n.º 1
0
    public void SendGuestUserUpdate()
    {
        // 디바이스 사용자 광고ID 얻기
        Application.RequestAdvertisingIdentifierAsync((string advertisingId, bool trackingEnabled, string error) =>
        {
            //Debug.Log("advertisingId " + advertisingId + " " + trackingEnabled + " " + error);
            PK.GuestUserUpdate.SendData data = new PK.GuestUserUpdate.SendData();

            data.version  = xLIB.CONFIG.GetBuildVersion();
            data.platform = xLIB.CONFIG.CurrentPlatform.ToString();
            data.device   = SystemInfo.deviceModel;
            data.maid     = advertisingId;

            PK.GuestUserUpdate.SEND command = new PK.GuestUserUpdate.SEND(PKID.GuestUserUpdate, data);
            _NetSocket.SendData(xLitJson.JsonMapper.ToJson(command), null, null, null);
        });
    }
Ejemplo n.º 2
0
 public SEND(string cmd, SendData data)
 {
     this.cmd  = cmd;
     this.data = data;
 }