TicketUserServices

<back to all web services

StigSummaryRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
GET/stig/summary
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class StigSummaryRequest
    {
        public String fullPhoneNumber = null;
        
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public StigSummaryRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
    }

    public static class StigSummaryResult
    {
        public String fullPhoneNumber = null;
        public Boolean known = null;
        public Boolean excluded = null;
        public Integer balance = null;
        public Integer heldStig = null;
        public Integer available = null;
        public Integer lifetimeEarned = null;
        public Date updatedUtc = null;
        public StigStreakView streak = null;
        public StigLadderView ladder = null;
        public Integer statusCode = null;
        public String message = null;
        
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public StigSummaryResult setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
        public Boolean isKnown() { return known; }
        public StigSummaryResult setKnown(Boolean value) { this.known = value; return this; }
        public Boolean isExcluded() { return excluded; }
        public StigSummaryResult setExcluded(Boolean value) { this.excluded = value; return this; }
        public Integer getBalance() { return balance; }
        public StigSummaryResult setBalance(Integer value) { this.balance = value; return this; }
        public Integer getHeldStig() { return heldStig; }
        public StigSummaryResult setHeldStig(Integer value) { this.heldStig = value; return this; }
        public Integer getAvailable() { return available; }
        public StigSummaryResult setAvailable(Integer value) { this.available = value; return this; }
        public Integer getLifetimeEarned() { return lifetimeEarned; }
        public StigSummaryResult setLifetimeEarned(Integer value) { this.lifetimeEarned = value; return this; }
        public Date getUpdatedUtc() { return updatedUtc; }
        public StigSummaryResult setUpdatedUtc(Date value) { this.updatedUtc = value; return this; }
        public StigStreakView getStreak() { return streak; }
        public StigSummaryResult setStreak(StigStreakView value) { this.streak = value; return this; }
        public StigLadderView getLadder() { return ladder; }
        public StigSummaryResult setLadder(StigLadderView value) { this.ladder = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public StigSummaryResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public StigSummaryResult setMessage(String value) { this.message = value; return this; }
    }

    public static class StigStreakView
    {
        public Integer currentWeeks = null;
        public Integer longestWeeks = null;
        public Integer totalScanWeeks = null;
        public Integer totalScans = null;
        public String currentWeekKey = null;
        public String lastScanWeekKey = null;
        public Date lastScanUtc = null;
        public Date currentStreakStartUtc = null;
        public Boolean scannedThisWeek = null;
        public Boolean atRisk = null;
        
        public Integer getCurrentWeeks() { return currentWeeks; }
        public StigStreakView setCurrentWeeks(Integer value) { this.currentWeeks = value; return this; }
        public Integer getLongestWeeks() { return longestWeeks; }
        public StigStreakView setLongestWeeks(Integer value) { this.longestWeeks = value; return this; }
        public Integer getTotalScanWeeks() { return totalScanWeeks; }
        public StigStreakView setTotalScanWeeks(Integer value) { this.totalScanWeeks = value; return this; }
        public Integer getTotalScans() { return totalScans; }
        public StigStreakView setTotalScans(Integer value) { this.totalScans = value; return this; }
        public String getCurrentWeekKey() { return currentWeekKey; }
        public StigStreakView setCurrentWeekKey(String value) { this.currentWeekKey = value; return this; }
        public String getLastScanWeekKey() { return lastScanWeekKey; }
        public StigStreakView setLastScanWeekKey(String value) { this.lastScanWeekKey = value; return this; }
        public Date getLastScanUtc() { return lastScanUtc; }
        public StigStreakView setLastScanUtc(Date value) { this.lastScanUtc = value; return this; }
        public Date getCurrentStreakStartUtc() { return currentStreakStartUtc; }
        public StigStreakView setCurrentStreakStartUtc(Date value) { this.currentStreakStartUtc = value; return this; }
        public Boolean isScannedThisWeek() { return scannedThisWeek; }
        public StigStreakView setScannedThisWeek(Boolean value) { this.scannedThisWeek = value; return this; }
        public Boolean isAtRisk() { return atRisk; }
        public StigStreakView setAtRisk(Boolean value) { this.atRisk = value; return this; }
    }

    public static class StigLadderView
    {
        public ArrayList<Integer> rungs = null;
        public Integer rungsReached = null;
        public Integer nextRung = null;
        public Integer stigToNextRung = null;
        public Integer progressBasisPoints = null;
        
        public ArrayList<Integer> getRungs() { return rungs; }
        public StigLadderView setRungs(ArrayList<Integer> value) { this.rungs = value; return this; }
        public Integer getRungsReached() { return rungsReached; }
        public StigLadderView setRungsReached(Integer value) { this.rungsReached = value; return this; }
        public Integer getNextRung() { return nextRung; }
        public StigLadderView setNextRung(Integer value) { this.nextRung = value; return this; }
        public Integer getStigToNextRung() { return stigToNextRung; }
        public StigLadderView setStigToNextRung(Integer value) { this.stigToNextRung = value; return this; }
        public Integer getProgressBasisPoints() { return progressBasisPoints; }
        public StigLadderView setProgressBasisPoints(Integer value) { this.progressBasisPoints = value; return this; }
    }

}

Java StigSummaryRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /stig/summary HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<StigSummaryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Available>0</Available>
  <Balance>0</Balance>
  <Excluded>false</Excluded>
  <FullPhoneNumber>String</FullPhoneNumber>
  <HeldStig>0</HeldStig>
  <Known>false</Known>
  <Ladder>
    <NextRung>0</NextRung>
    <ProgressBasisPoints>0</ProgressBasisPoints>
    <Rungs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </Rungs>
    <RungsReached>0</RungsReached>
    <StigToNextRung>0</StigToNextRung>
  </Ladder>
  <LifetimeEarned>0</LifetimeEarned>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
  <Streak>
    <AtRisk>false</AtRisk>
    <CurrentStreakStartUtc>0001-01-01T00:00:00</CurrentStreakStartUtc>
    <CurrentWeekKey>String</CurrentWeekKey>
    <CurrentWeeks>0</CurrentWeeks>
    <LastScanUtc>0001-01-01T00:00:00</LastScanUtc>
    <LastScanWeekKey>String</LastScanWeekKey>
    <LongestWeeks>0</LongestWeeks>
    <ScannedThisWeek>false</ScannedThisWeek>
    <TotalScanWeeks>0</TotalScanWeeks>
    <TotalScans>0</TotalScans>
  </Streak>
  <UpdatedUtc>0001-01-01T00:00:00</UpdatedUtc>
</StigSummaryResult>