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); }); }
public SEND(string cmd, SendData data) { this.cmd = cmd; this.data = data; }