Exemplo n.º 1
0
        public IssueResponse RegisterIssue(IssueData issueData)
        {
            var data   = issueData.ToIssueData();
            var result = ExecuteQuery <IssueResponse, RegisterIssueRequest>(data, "issue", "register");

            return(result);
        }
Exemplo n.º 2
0
        public IssueResponse RegisterIssue(IssueData issueData)
        {
            var data = issueData.ToIssueData();

            var jsonFormatter = new JsonMediaTypeFormatter();
            var content       = new ObjectContent <RegisterIssueRequest>(data, jsonFormatter);

            var x        = ExecuteQuery <RegisterIssueRequest, RegisterIssueResponse>(content, "issue", "register");
            var response = new IssueResponse
            {
                IssueTypeTicket     = x.IssueTypeTicket,
                IssueInstanceTicket = x.IssueInstanceTicket,
                IsOfficial          = x.IsOfficial,
                ResponseMessage     = x.ResponseMessage,
            };

            return(response);
        }