| POST,OPTIONS | /v1/Equipment/{EquipmentID}/dvir/signoff |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class EquipmentDvirSignOffRequest
{
public Integer EquipmentID = null;
public ArrayList<DvirSignOffItem> Defects = new ArrayList<DvirSignOffItem>();
public String MechanicName = null;
public String SignaturePng = null;
public Integer getEquipmentID() { return EquipmentID; }
public EquipmentDvirSignOffRequest setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public ArrayList<DvirSignOffItem> getDefects() { return Defects; }
public EquipmentDvirSignOffRequest setDefects(ArrayList<DvirSignOffItem> value) { this.Defects = value; return this; }
public String getMechanicName() { return MechanicName; }
public EquipmentDvirSignOffRequest setMechanicName(String value) { this.MechanicName = value; return this; }
public String getSignaturePng() { return SignaturePng; }
public EquipmentDvirSignOffRequest setSignaturePng(String value) { this.SignaturePng = value; return this; }
}
public static class DvirSignOffItem
{
public Integer DvirDefectID = null;
public String Outcome = null;
public String Note = null;
public String ScheduledFor = null;
public Integer getDvirDefectID() { return DvirDefectID; }
public DvirSignOffItem setDvirDefectID(Integer value) { this.DvirDefectID = value; return this; }
public String getOutcome() { return Outcome; }
public DvirSignOffItem setOutcome(String value) { this.Outcome = value; return this; }
public String getNote() { return Note; }
public DvirSignOffItem setNote(String value) { this.Note = value; return this; }
public String getScheduledFor() { return ScheduledFor; }
public DvirSignOffItem setScheduledFor(String value) { this.ScheduledFor = value; return this; }
}
public static class EquipmentDvirSignOffResponse
{
public DvirVehicleDetail Vehicle = null;
public Boolean Returned = null;
public ResponseStatus ResponseStatus = null;
public DvirVehicleDetail getVehicle() { return Vehicle; }
public EquipmentDvirSignOffResponse setVehicle(DvirVehicleDetail value) { this.Vehicle = value; return this; }
public Boolean isReturned() { return Returned; }
public EquipmentDvirSignOffResponse setReturned(Boolean value) { this.Returned = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public EquipmentDvirSignOffResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class DvirVehicleDetail extends DvirVehicleView
{
public String Plate = null;
public String VIN = null;
public Integer GvwrLbs = null;
public String BranchName = null;
public Date InspectionDue = null;
public Date InsuranceExpires = null;
public ArrayList<DvirDefectView> RecentlyFixed = new ArrayList<DvirDefectView>();
public ArrayList<DvirReportView> ReviewReports = new ArrayList<DvirReportView>();
public ArrayList<DvirReportView> History = new ArrayList<DvirReportView>();
public String getPlate() { return Plate; }
public DvirVehicleDetail setPlate(String value) { this.Plate = value; return this; }
public String getVin() { return VIN; }
public DvirVehicleDetail setVin(String value) { this.VIN = value; return this; }
public Integer getGvwrLbs() { return GvwrLbs; }
public DvirVehicleDetail setGvwrLbs(Integer value) { this.GvwrLbs = value; return this; }
public String getBranchName() { return BranchName; }
public DvirVehicleDetail setBranchName(String value) { this.BranchName = value; return this; }
public Date getInspectionDue() { return InspectionDue; }
public DvirVehicleDetail setInspectionDue(Date value) { this.InspectionDue = value; return this; }
public Date getInsuranceExpires() { return InsuranceExpires; }
public DvirVehicleDetail setInsuranceExpires(Date value) { this.InsuranceExpires = value; return this; }
public ArrayList<DvirDefectView> getRecentlyFixed() { return RecentlyFixed; }
public DvirVehicleDetail setRecentlyFixed(ArrayList<DvirDefectView> value) { this.RecentlyFixed = value; return this; }
public ArrayList<DvirReportView> getReviewReports() { return ReviewReports; }
public DvirVehicleDetail setReviewReports(ArrayList<DvirReportView> value) { this.ReviewReports = value; return this; }
public ArrayList<DvirReportView> getHistory() { return History; }
public DvirVehicleDetail setHistory(ArrayList<DvirReportView> value) { this.History = value; return this; }
}
public static class DvirVehicleView
{
public Integer EquipmentID = null;
public String Unit = null;
public String Name = null;
public String VehicleType = null;
public Boolean IsTrailer = null;
public String VehicleStatus = null;
public String Status = null;
public String StatusText = null;
public String Line = null;
public String FirstUnsafeReport = null;
public Integer OpenCount = null;
public String LocalToday = null;
public Boolean NeedsPreTrip = null;
public Boolean NeedsReview = null;
public ArrayList<Integer> ReviewReportIds = new ArrayList<Integer>();
public ArrayList<DvirUnitRef> Trailers = new ArrayList<DvirUnitRef>();
public Integer LastOdometer = null;
public String InUseBy = null;
public Boolean DrivingNow = null;
public Integer TodayPreTripId = null;
public Integer TodayPostTripId = null;
public ArrayList<DvirDefectView> OpenDefects = new ArrayList<DvirDefectView>();
public Integer getEquipmentID() { return EquipmentID; }
public DvirVehicleView setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnit() { return Unit; }
public DvirVehicleView setUnit(String value) { this.Unit = value; return this; }
public String getName() { return Name; }
public DvirVehicleView setName(String value) { this.Name = value; return this; }
public String getVehicleType() { return VehicleType; }
public DvirVehicleView setVehicleType(String value) { this.VehicleType = value; return this; }
public Boolean getIsTrailer() { return IsTrailer; }
public DvirVehicleView setIsTrailer(Boolean value) { this.IsTrailer = value; return this; }
public String getVehicleStatus() { return VehicleStatus; }
public DvirVehicleView setVehicleStatus(String value) { this.VehicleStatus = value; return this; }
public String getStatus() { return Status; }
public DvirVehicleView setStatus(String value) { this.Status = value; return this; }
public String getStatusText() { return StatusText; }
public DvirVehicleView setStatusText(String value) { this.StatusText = value; return this; }
public String getLine() { return Line; }
public DvirVehicleView setLine(String value) { this.Line = value; return this; }
public String getFirstUnsafeReport() { return FirstUnsafeReport; }
public DvirVehicleView setFirstUnsafeReport(String value) { this.FirstUnsafeReport = value; return this; }
public Integer getOpenCount() { return OpenCount; }
public DvirVehicleView setOpenCount(Integer value) { this.OpenCount = value; return this; }
public String getLocalToday() { return LocalToday; }
public DvirVehicleView setLocalToday(String value) { this.LocalToday = value; return this; }
public Boolean isNeedsPreTrip() { return NeedsPreTrip; }
public DvirVehicleView setNeedsPreTrip(Boolean value) { this.NeedsPreTrip = value; return this; }
public Boolean isNeedsReview() { return NeedsReview; }
public DvirVehicleView setNeedsReview(Boolean value) { this.NeedsReview = value; return this; }
public ArrayList<Integer> getReviewReportIds() { return ReviewReportIds; }
public DvirVehicleView setReviewReportIds(ArrayList<Integer> value) { this.ReviewReportIds = value; return this; }
public ArrayList<DvirUnitRef> getTrailers() { return Trailers; }
public DvirVehicleView setTrailers(ArrayList<DvirUnitRef> value) { this.Trailers = value; return this; }
public Integer getLastOdometer() { return LastOdometer; }
public DvirVehicleView setLastOdometer(Integer value) { this.LastOdometer = value; return this; }
public String getInUseBy() { return InUseBy; }
public DvirVehicleView setInUseBy(String value) { this.InUseBy = value; return this; }
public Boolean isDrivingNow() { return DrivingNow; }
public DvirVehicleView setDrivingNow(Boolean value) { this.DrivingNow = value; return this; }
public Integer getTodayPreTripId() { return TodayPreTripId; }
public DvirVehicleView setTodayPreTripId(Integer value) { this.TodayPreTripId = value; return this; }
public Integer getTodayPostTripId() { return TodayPostTripId; }
public DvirVehicleView setTodayPostTripId(Integer value) { this.TodayPostTripId = value; return this; }
public ArrayList<DvirDefectView> getOpenDefects() { return OpenDefects; }
public DvirVehicleView setOpenDefects(ArrayList<DvirDefectView> value) { this.OpenDefects = value; return this; }
}
public static class DvirUnitRef
{
public Integer EquipmentID = null;
public String Unit = null;
public Integer getEquipmentID() { return EquipmentID; }
public DvirUnitRef setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnit() { return Unit; }
public DvirUnitRef setUnit(String value) { this.Unit = value; return this; }
}
public static class DvirDefectView
{
public Integer DvirDefectID = null;
public String ClientKey = null;
public Integer DvirReportID = null;
public String ReportNumber = null;
public Integer EquipmentID = null;
public String Unit = null;
public String ItemKey = null;
public String Label = null;
public String FormLine = null;
public Boolean IsCustom = null;
public String Severity = null;
public String SeverityText = null;
public String Note = null;
public String Source = null;
public String ReportedByName = null;
public Date ReportedAtUtc = null;
public Integer EquipmentMaintenanceID = null;
public String Outcome = null;
public String OutcomeText = null;
public String OutcomeNote = null;
public String ScheduledFor = null;
public String SignedOffByName = null;
public Date SignedOffAtUtc = null;
public Boolean IsOpen = null;
public Boolean Withdrawn = null;
public Integer PhotoCount = null;
public ArrayList<DvirPhotoView> Photos = new ArrayList<DvirPhotoView>();
public Integer getDvirDefectID() { return DvirDefectID; }
public DvirDefectView setDvirDefectID(Integer value) { this.DvirDefectID = value; return this; }
public String getClientKey() { return ClientKey; }
public DvirDefectView setClientKey(String value) { this.ClientKey = value; return this; }
public Integer getDvirReportID() { return DvirReportID; }
public DvirDefectView setDvirReportID(Integer value) { this.DvirReportID = value; return this; }
public String getReportNumber() { return ReportNumber; }
public DvirDefectView setReportNumber(String value) { this.ReportNumber = value; return this; }
public Integer getEquipmentID() { return EquipmentID; }
public DvirDefectView setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnit() { return Unit; }
public DvirDefectView setUnit(String value) { this.Unit = value; return this; }
public String getItemKey() { return ItemKey; }
public DvirDefectView setItemKey(String value) { this.ItemKey = value; return this; }
public String getLabel() { return Label; }
public DvirDefectView setLabel(String value) { this.Label = value; return this; }
public String getFormLine() { return FormLine; }
public DvirDefectView setFormLine(String value) { this.FormLine = value; return this; }
public Boolean getIsCustom() { return IsCustom; }
public DvirDefectView setIsCustom(Boolean value) { this.IsCustom = value; return this; }
public String getSeverity() { return Severity; }
public DvirDefectView setSeverity(String value) { this.Severity = value; return this; }
public String getSeverityText() { return SeverityText; }
public DvirDefectView setSeverityText(String value) { this.SeverityText = value; return this; }
public String getNote() { return Note; }
public DvirDefectView setNote(String value) { this.Note = value; return this; }
public String getSource() { return Source; }
public DvirDefectView setSource(String value) { this.Source = value; return this; }
public String getReportedByName() { return ReportedByName; }
public DvirDefectView setReportedByName(String value) { this.ReportedByName = value; return this; }
public Date getReportedAtUtc() { return ReportedAtUtc; }
public DvirDefectView setReportedAtUtc(Date value) { this.ReportedAtUtc = value; return this; }
public Integer getEquipmentMaintenanceID() { return EquipmentMaintenanceID; }
public DvirDefectView setEquipmentMaintenanceID(Integer value) { this.EquipmentMaintenanceID = value; return this; }
public String getOutcome() { return Outcome; }
public DvirDefectView setOutcome(String value) { this.Outcome = value; return this; }
public String getOutcomeText() { return OutcomeText; }
public DvirDefectView setOutcomeText(String value) { this.OutcomeText = value; return this; }
public String getOutcomeNote() { return OutcomeNote; }
public DvirDefectView setOutcomeNote(String value) { this.OutcomeNote = value; return this; }
public String getScheduledFor() { return ScheduledFor; }
public DvirDefectView setScheduledFor(String value) { this.ScheduledFor = value; return this; }
public String getSignedOffByName() { return SignedOffByName; }
public DvirDefectView setSignedOffByName(String value) { this.SignedOffByName = value; return this; }
public Date getSignedOffAtUtc() { return SignedOffAtUtc; }
public DvirDefectView setSignedOffAtUtc(Date value) { this.SignedOffAtUtc = value; return this; }
public Boolean getIsOpen() { return IsOpen; }
public DvirDefectView setIsOpen(Boolean value) { this.IsOpen = value; return this; }
public Boolean isWithdrawn() { return Withdrawn; }
public DvirDefectView setWithdrawn(Boolean value) { this.Withdrawn = value; return this; }
public Integer getPhotoCount() { return PhotoCount; }
public DvirDefectView setPhotoCount(Integer value) { this.PhotoCount = value; return this; }
public ArrayList<DvirPhotoView> getPhotos() { return Photos; }
public DvirDefectView setPhotos(ArrayList<DvirPhotoView> value) { this.Photos = value; return this; }
}
public static class DvirPhotoView
{
public Integer WorkPhotoID = null;
public String DefectKey = null;
public String Url = null;
public String MarkedUrl = null;
public Date CapturedAtUtc = null;
public BigDecimal Lat = null;
public BigDecimal Lng = null;
public Integer getWorkPhotoID() { return WorkPhotoID; }
public DvirPhotoView setWorkPhotoID(Integer value) { this.WorkPhotoID = value; return this; }
public String getDefectKey() { return DefectKey; }
public DvirPhotoView setDefectKey(String value) { this.DefectKey = value; return this; }
public String getUrl() { return Url; }
public DvirPhotoView setUrl(String value) { this.Url = value; return this; }
public String getMarkedUrl() { return MarkedUrl; }
public DvirPhotoView setMarkedUrl(String value) { this.MarkedUrl = value; return this; }
public Date getCapturedAtUtc() { return CapturedAtUtc; }
public DvirPhotoView setCapturedAtUtc(Date value) { this.CapturedAtUtc = value; return this; }
public BigDecimal getLat() { return Lat; }
public DvirPhotoView setLat(BigDecimal value) { this.Lat = value; return this; }
public BigDecimal getLng() { return Lng; }
public DvirPhotoView setLng(BigDecimal value) { this.Lng = value; return this; }
}
public static class DvirReportView
{
public Integer DvirReportID = null;
public String Number = null;
public String Kind = null;
public String KindText = null;
public Integer EquipmentID = null;
public String Unit = null;
public ArrayList<DvirUnitRef> Trailers = new ArrayList<DvirUnitRef>();
public Integer ContactID = null;
public String DriverName = null;
public String Board = null;
public String ForDate = null;
public Date FiledAtUtc = null;
public Date SavedAtUtc = null;
public Boolean IsLate = null;
public Boolean IsAway = null;
public Boolean IsSatisfactory = null;
public Integer Odometer = null;
public String LocationText = null;
public String Remarks = null;
public String ReviewedByName = null;
public Date ReviewedAtUtc = null;
public String Chip = null;
public ArrayList<DvirDefectView> Defects = new ArrayList<DvirDefectView>();
public ArrayList<DvirSignatureView> Signatures = new ArrayList<DvirSignatureView>();
public Integer getDvirReportID() { return DvirReportID; }
public DvirReportView setDvirReportID(Integer value) { this.DvirReportID = value; return this; }
public String getNumber() { return Number; }
public DvirReportView setNumber(String value) { this.Number = value; return this; }
public String getKind() { return Kind; }
public DvirReportView setKind(String value) { this.Kind = value; return this; }
public String getKindText() { return KindText; }
public DvirReportView setKindText(String value) { this.KindText = value; return this; }
public Integer getEquipmentID() { return EquipmentID; }
public DvirReportView setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnit() { return Unit; }
public DvirReportView setUnit(String value) { this.Unit = value; return this; }
public ArrayList<DvirUnitRef> getTrailers() { return Trailers; }
public DvirReportView setTrailers(ArrayList<DvirUnitRef> value) { this.Trailers = value; return this; }
public Integer getContactID() { return ContactID; }
public DvirReportView setContactID(Integer value) { this.ContactID = value; return this; }
public String getDriverName() { return DriverName; }
public DvirReportView setDriverName(String value) { this.DriverName = value; return this; }
public String getBoard() { return Board; }
public DvirReportView setBoard(String value) { this.Board = value; return this; }
public String getForDate() { return ForDate; }
public DvirReportView setForDate(String value) { this.ForDate = value; return this; }
public Date getFiledAtUtc() { return FiledAtUtc; }
public DvirReportView setFiledAtUtc(Date value) { this.FiledAtUtc = value; return this; }
public Date getSavedAtUtc() { return SavedAtUtc; }
public DvirReportView setSavedAtUtc(Date value) { this.SavedAtUtc = value; return this; }
public Boolean getIsLate() { return IsLate; }
public DvirReportView setIsLate(Boolean value) { this.IsLate = value; return this; }
public Boolean getIsAway() { return IsAway; }
public DvirReportView setIsAway(Boolean value) { this.IsAway = value; return this; }
public Boolean getIsSatisfactory() { return IsSatisfactory; }
public DvirReportView setIsSatisfactory(Boolean value) { this.IsSatisfactory = value; return this; }
public Integer getOdometer() { return Odometer; }
public DvirReportView setOdometer(Integer value) { this.Odometer = value; return this; }
public String getLocationText() { return LocationText; }
public DvirReportView setLocationText(String value) { this.LocationText = value; return this; }
public String getRemarks() { return Remarks; }
public DvirReportView setRemarks(String value) { this.Remarks = value; return this; }
public String getReviewedByName() { return ReviewedByName; }
public DvirReportView setReviewedByName(String value) { this.ReviewedByName = value; return this; }
public Date getReviewedAtUtc() { return ReviewedAtUtc; }
public DvirReportView setReviewedAtUtc(Date value) { this.ReviewedAtUtc = value; return this; }
public String getChip() { return Chip; }
public DvirReportView setChip(String value) { this.Chip = value; return this; }
public ArrayList<DvirDefectView> getDefects() { return Defects; }
public DvirReportView setDefects(ArrayList<DvirDefectView> value) { this.Defects = value; return this; }
public ArrayList<DvirSignatureView> getSignatures() { return Signatures; }
public DvirReportView setSignatures(ArrayList<DvirSignatureView> value) { this.Signatures = value; return this; }
}
public static class DvirSignatureView
{
public Integer SignatureRecordID = null;
public String Role = null;
public String SignerName = null;
public Date SignedAt = null;
public String ImageUrl = null;
public Integer getSignatureRecordID() { return SignatureRecordID; }
public DvirSignatureView setSignatureRecordID(Integer value) { this.SignatureRecordID = value; return this; }
public String getRole() { return Role; }
public DvirSignatureView setRole(String value) { this.Role = value; return this; }
public String getSignerName() { return SignerName; }
public DvirSignatureView setSignerName(String value) { this.SignerName = value; return this; }
public Date getSignedAt() { return SignedAt; }
public DvirSignatureView setSignedAt(Date value) { this.SignedAt = value; return this; }
public String getImageUrl() { return ImageUrl; }
public DvirSignatureView setImageUrl(String value) { this.ImageUrl = value; return this; }
}
}
Java EquipmentDvirSignOffRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Equipment/{EquipmentID}/dvir/signoff HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
EquipmentID: 0,
Defects:
[
{
DvirDefectID: 0,
Outcome: String,
Note: String,
ScheduledFor: String
}
],
MechanicName: String,
SignaturePng: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Vehicle:
{
Plate: String,
VIN: String,
GvwrLbs: 0,
BranchName: String,
InspectionDue: 0001-01-01,
InsuranceExpires: 0001-01-01,
RecentlyFixed:
[
{
DvirDefectID: 0,
ClientKey: String,
DvirReportID: 0,
ReportNumber: String,
EquipmentID: 0,
Unit: String,
ItemKey: String,
Label: String,
FormLine: String,
IsCustom: False,
Severity: String,
SeverityText: String,
Note: String,
Source: String,
ReportedByName: String,
ReportedAtUtc: 0001-01-01,
EquipmentMaintenanceID: 0,
Outcome: String,
OutcomeText: String,
OutcomeNote: String,
ScheduledFor: String,
SignedOffByName: String,
SignedOffAtUtc: 0001-01-01,
IsOpen: False,
Withdrawn: False,
PhotoCount: 0,
Photos:
[
{
WorkPhotoID: 0,
DefectKey: String,
Url: String,
MarkedUrl: String,
CapturedAtUtc: 0001-01-01,
Lat: 0,
Lng: 0
}
]
}
],
ReviewReports:
[
{
DvirReportID: 0,
Number: String,
Kind: String,
KindText: String,
EquipmentID: 0,
Unit: String,
Trailers:
[
{
EquipmentID: 0,
Unit: String
}
],
ContactID: 0,
DriverName: String,
Board: String,
ForDate: String,
FiledAtUtc: 0001-01-01,
SavedAtUtc: 0001-01-01,
IsLate: False,
IsAway: False,
IsSatisfactory: False,
Odometer: 0,
LocationText: String,
Remarks: String,
ReviewedByName: String,
ReviewedAtUtc: 0001-01-01,
Chip: String,
Defects:
[
{
DvirDefectID: 0,
ClientKey: String,
DvirReportID: 0,
ReportNumber: String,
EquipmentID: 0,
Unit: String,
ItemKey: String,
Label: String,
FormLine: String,
IsCustom: False,
Severity: String,
SeverityText: String,
Note: String,
Source: String,
ReportedByName: String,
ReportedAtUtc: 0001-01-01,
EquipmentMaintenanceID: 0,
Outcome: String,
OutcomeText: String,
OutcomeNote: String,
ScheduledFor: String,
SignedOffByName: String,
SignedOffAtUtc: 0001-01-01,
IsOpen: False,
Withdrawn: False,
PhotoCount: 0,
Photos:
[
{
WorkPhotoID: 0,
DefectKey: String,
Url: String,
MarkedUrl: String,
CapturedAtUtc: 0001-01-01,
Lat: 0,
Lng: 0
}
]
}
],
Signatures:
[
{
SignatureRecordID: 0,
Role: String,
SignerName: String,
SignedAt: 0001-01-01,
ImageUrl: String
}
]
}
],
History:
[
{
DvirReportID: 0,
Number: String,
Kind: String,
KindText: String,
EquipmentID: 0,
Unit: String,
Trailers:
[
{
EquipmentID: 0,
Unit: String
}
],
ContactID: 0,
DriverName: String,
Board: String,
ForDate: String,
FiledAtUtc: 0001-01-01,
SavedAtUtc: 0001-01-01,
IsLate: False,
IsAway: False,
IsSatisfactory: False,
Odometer: 0,
LocationText: String,
Remarks: String,
ReviewedByName: String,
ReviewedAtUtc: 0001-01-01,
Chip: String,
Defects:
[
{
DvirDefectID: 0,
ClientKey: String,
DvirReportID: 0,
ReportNumber: String,
EquipmentID: 0,
Unit: String,
ItemKey: String,
Label: String,
FormLine: String,
IsCustom: False,
Severity: String,
SeverityText: String,
Note: String,
Source: String,
ReportedByName: String,
ReportedAtUtc: 0001-01-01,
EquipmentMaintenanceID: 0,
Outcome: String,
OutcomeText: String,
OutcomeNote: String,
ScheduledFor: String,
SignedOffByName: String,
SignedOffAtUtc: 0001-01-01,
IsOpen: False,
Withdrawn: False,
PhotoCount: 0,
Photos:
[
{
WorkPhotoID: 0,
DefectKey: String,
Url: String,
MarkedUrl: String,
CapturedAtUtc: 0001-01-01,
Lat: 0,
Lng: 0
}
]
}
],
Signatures:
[
{
SignatureRecordID: 0,
Role: String,
SignerName: String,
SignedAt: 0001-01-01,
ImageUrl: String
}
]
}
],
EquipmentID: 0,
Unit: String,
Name: String,
VehicleType: String,
IsTrailer: False,
VehicleStatus: String,
Status: String,
StatusText: String,
Line: String,
FirstUnsafeReport: String,
OpenCount: 0,
LocalToday: String,
NeedsPreTrip: False,
NeedsReview: False,
ReviewReportIds:
[
0
],
Trailers:
[
{
EquipmentID: 0,
Unit: String
}
],
LastOdometer: 0,
InUseBy: String,
DrivingNow: False,
TodayPreTripId: 0,
TodayPostTripId: 0,
OpenDefects:
[
{
DvirDefectID: 0,
ClientKey: String,
DvirReportID: 0,
ReportNumber: String,
EquipmentID: 0,
Unit: String,
ItemKey: String,
Label: String,
FormLine: String,
IsCustom: False,
Severity: String,
SeverityText: String,
Note: String,
Source: String,
ReportedByName: String,
ReportedAtUtc: 0001-01-01,
EquipmentMaintenanceID: 0,
Outcome: String,
OutcomeText: String,
OutcomeNote: String,
ScheduledFor: String,
SignedOffByName: String,
SignedOffAtUtc: 0001-01-01,
IsOpen: False,
Withdrawn: False,
PhotoCount: 0,
Photos:
[
{
WorkPhotoID: 0,
DefectKey: String,
Url: String,
MarkedUrl: String,
CapturedAtUtc: 0001-01-01,
Lat: 0,
Lng: 0
}
]
}
]
},
Returned: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}