public static PlayerAuthResponse Unmarshall(UnmarshallerContext context) { PlayerAuthResponse playerAuthResponse = new PlayerAuthResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("PlayerAuth.RequestId"), LogURL = context.StringValue("PlayerAuth.LogURL") }; List <PlayerAuthResponse.Switch> switchList = new List <PlayerAuthResponse.Switch>(); for (int i = 0; i < context.Length("PlayerAuth.SwitchList.Length"); i++) { PlayerAuthResponse.Switch switch_ = new PlayerAuthResponse.Switch() { State = context.StringValue($"PlayerAuth.SwitchList[{i}].State"), FunctionId = context.StringValue($"PlayerAuth.SwitchList[{i}].FunctionId"), SwitchId = context.StringValue($"PlayerAuth.SwitchList[{i}].SwitchId"), FunctionName = context.StringValue($"PlayerAuth.SwitchList[{i}].FunctionName") }; switchList.Add(switch_); } playerAuthResponse.SwitchList = switchList; return(playerAuthResponse); }
public static PlayerAuthResponse Unmarshall(UnmarshallerContext context) { PlayerAuthResponse playerAuthResponse = new PlayerAuthResponse(); playerAuthResponse.HttpResponse = context.HttpResponse; playerAuthResponse.RequestId = context.StringValue("PlayerAuth.RequestId"); List <PlayerAuthResponse.Switch> switchList = new List <PlayerAuthResponse.Switch>(); for (int i = 0; i < context.Length("PlayerAuth.SwitchList.Length"); i++) { PlayerAuthResponse.Switch switch_ = new PlayerAuthResponse.Switch(); switch_.State = context.StringValue("PlayerAuth.SwitchList[" + i + "].State"); switch_.FunctionId = context.StringValue("PlayerAuth.SwitchList[" + i + "].FunctionId"); switch_.SwitchId = context.StringValue("PlayerAuth.SwitchList[" + i + "].SwitchId"); switchList.Add(switch_); } playerAuthResponse.SwitchList = switchList; return(playerAuthResponse); }