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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"fullPhoneNumber":"String","known":false,"excluded":false,"balance":0,"heldStig":0,"available":0,"lifetimeEarned":0,"updatedUtc":"0001-01-01T00:00:00.0000000","streak":{"currentWeeks":0,"longestWeeks":0,"totalScanWeeks":0,"totalScans":0,"currentWeekKey":"String","lastScanWeekKey":"String","lastScanUtc":"0001-01-01T00:00:00.0000000","currentStreakStartUtc":"0001-01-01T00:00:00.0000000","scannedThisWeek":false,"atRisk":false},"ladder":{"rungs":[0],"rungsReached":0,"nextRung":0,"stigToNextRung":0,"progressBasisPoints":0},"statusCode":0,"message":"String"}