コード例 #1
0
        public override object Deserialize(IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            if (dictionary != null)
            {
                var issueChild = new IssueChild();

                issueChild.Id      = dictionary.GetValue <int>("id");
                issueChild.Tracker = dictionary.GetValueAsIdentifiableName("tracker");
                issueChild.Subject = dictionary.GetValue <string>("subject");

                return(issueChild);
            }

            return(null);
        }
コード例 #2
0
        public override object Deserialize(IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            if (dictionary != null)
            {
                var issueChild = new IssueChild
                {
                    Id      = dictionary.GetValue <int>(RedmineKeys.ID),
                    Tracker = dictionary.GetValueAsIdentifiableName(RedmineKeys.TRACKER),
                    Subject = dictionary.GetValue <string>(RedmineKeys.SUBJECT)
                };

                return(issueChild);
            }

            return(null);
        }
コード例 #3
0
        public override object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            if (dictionary != null)
            {
                var issueChild = new IssueChild
                {
                    Id = dictionary.GetValue<int>("id"),
                    Tracker = dictionary.GetValueAsIdentifiableName("tracker"),
                    Subject = dictionary.GetValue<string>("subject")
                };

                return issueChild;
            }

            return null;
        }
コード例 #4
0
        public override object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            if (dictionary != null)
            {
                var issueChild = new IssueChild
                {
                    Id = dictionary.GetValue<int>(RedmineKeys.ID),
                    Tracker = dictionary.GetValueAsIdentifiableName(RedmineKeys.TRACKER),
                    Subject = dictionary.GetValue<string>(RedmineKeys.SUBJECT)
                };

                return issueChild;
            }

            return null;
        }