Пример #1
0
        public void UserLoginReq()
        {
            Proto.user_login_info uli = new Proto.user_login_info();
            uli.login_way          = 1;
            uli.open_udid          = "1021868db6647de4e63d5742baed1e7e44ef265d";
            uli.client_certificate = "";
            uli.client_version     = 123;
            uli.user_lang          = "zh_CN";
            uli.app_id             = "foobar1234";
            uli.os_version         = "Android 6.0 Marshmallow";
            uli.device_name        = "iPhone 6sp Limited Edition";
            uli.device_id          = SystemInfo.deviceUniqueIdentifier;
            uli.device_id_type     = 3;
            uli.login_ip           = "1.2.3.4";

            NetCore.Instance.Send(Api.ENetMsgId.user_login_req, uli);
        }
Пример #2
0
        public static user_login_info UnPack(ByteArray reader)
        {
            user_login_info tbl = new user_login_info();

            tbl.login_way          = reader.ReadInt32();
            tbl.open_udid          = reader.ReadUTFBytes();
            tbl.client_certificate = reader.ReadUTFBytes();
            tbl.client_version     = reader.ReadInt32();
            tbl.user_lang          = reader.ReadUTFBytes();
            tbl.app_id             = reader.ReadUTFBytes();
            tbl.os_version         = reader.ReadUTFBytes();
            tbl.device_name        = reader.ReadUTFBytes();
            tbl.device_id          = reader.ReadUTFBytes();
            tbl.device_id_type     = reader.ReadInt32();
            tbl.login_ip           = reader.ReadUTFBytes();

            return(tbl);
        }
Пример #3
0
        // 游客登陆
        public void UserLoginReq()
        {
            Proto.user_login_info info = new Proto.user_login_info();
            info.NetMsgId = (UInt16)Api.ENetMsgId.user_login_req;
            info.login_way = 1;
            info.open_udid = "1021868db6647de4e63d5742baed1e7e44ef265d";
            info.client_certificate = "";
            info.client_version = 123;
            info.user_lang = "zh_CN";
            info.app_id = "foobar1234";
            info.os_version = "Android 6.0 Marshmallow";
            info.device_name = "iPhone 6sp Limited Edition";
            info.device_id = SystemInfo.deviceUniqueIdentifier;
            info.device_id_type = 3;
            info.login_ip = "1.2.3.4";

            NetCore.Instance.Send(info);
        }
Пример #4
0
        public static user_login_info UnPack(ByteArray reader)
        {
            user_login_info tbl = new user_login_info();
            tbl.login_way = reader.ReadInt32();
            tbl.open_udid = reader.ReadUTFBytes();
            tbl.client_certificate = reader.ReadUTFBytes();
            tbl.client_version = reader.ReadInt32();
            tbl.user_lang = reader.ReadUTFBytes();
            tbl.app_id = reader.ReadUTFBytes();
            tbl.os_version = reader.ReadUTFBytes();
            tbl.device_name = reader.ReadUTFBytes();
            tbl.device_id = reader.ReadUTFBytes();
            tbl.device_id_type = reader.ReadInt32();
            tbl.login_ip = reader.ReadUTFBytes();

            return tbl;
        }