Aliyun.Acs.Mts.Transform.V20140618.PlayerAuthResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный статический Метод

public static Unmarshall ( UnmarshallerContext context ) : PlayerAuthResponse
context UnmarshallerContext
Результат Aliyun.Acs.Mts.Model.V20140618.PlayerAuthResponse
        public static PlayerAuthResponse Unmarshall(UnmarshallerContext context)
        {
            PlayerAuthResponse playerAuthResponse = new PlayerAuthResponse();

            playerAuthResponse.HttpResponse = context.HttpResponse;
            playerAuthResponse.RequestId = context.StringValue("PlayerAuth.RequestId");
            playerAuthResponse.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();
                switch_.State = context.StringValue("PlayerAuth.SwitchList["+ i +"].State");
                switch_.FunctionId = context.StringValue("PlayerAuth.SwitchList["+ i +"].FunctionId");
                switch_.SwitchId = context.StringValue("PlayerAuth.SwitchList["+ i +"].SwitchId");
                switch_.FunctionName = context.StringValue("PlayerAuth.SwitchList["+ i +"].FunctionName");

                switchList.Add(switch_);
            }
            playerAuthResponse.SwitchList = switchList;

            return playerAuthResponse;
        }
PlayerAuthResponseUnmarshaller