//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg import "errors" type Gameks struct { K int32 S string } const TypeId_Gameks = 1468999876 func (*Gameks) GetTypeId() int32 { return 1468999876 } func (_v *Gameks)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["k"].(float64); !_ok_ { err = errors.New("k error"); return }; _v.K = int32(_tempNum_) } { var _ok_ bool; if _v.S, _ok_ = _buf["s"].(string); !_ok_ { err = errors.New("s error"); return } } return } func DeserializeGameks(_buf map[string]interface{}) (*Gameks, error) { v := &Gameks{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }