Trendsic Platform Service

<back to all web services

ProjectEquipmentRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/ProjectEquipment
GET,POST,PUT,DELETE,OPTIONS/v1/ProjectEquipment/{ProjectEquipmentID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ProjectEquipmentRequest
    {
        public Integer ProjectEquipmentID = null;
        public ArrayList<ProjectEquipment> ProjectEquipment = new ArrayList<ProjectEquipment>();
        
        public Integer getProjectEquipmentID() { return ProjectEquipmentID; }
        public ProjectEquipmentRequest setProjectEquipmentID(Integer value) { this.ProjectEquipmentID = value; return this; }
        public ArrayList<ProjectEquipment> getProjectEquipment() { return ProjectEquipment; }
        public ProjectEquipmentRequest setProjectEquipment(ArrayList<ProjectEquipment> value) { this.ProjectEquipment = value; return this; }
    }

    public static class ProjectEquipment extends Equipment
    {
        public Integer ProjectEquipmentID = null;
        public Integer ProjectID = null;
        public Date ProjectEndDate = null;
        public Date FirstJobUseDate = null;
        public Date LastJobUseDate = null;
        public BigDecimal EquipmentRate = null;
        public Integer JobID = null;
        public BigDecimal BilledEquipmentRate = null;
        public String Status = null;
        public String Source = null;
        public Integer OverlapBookings = null;
        public Boolean HasBookingConflict = null;
        public String ConflictJobs = null;
        
        public Integer getProjectEquipmentID() { return ProjectEquipmentID; }
        public ProjectEquipment setProjectEquipmentID(Integer value) { this.ProjectEquipmentID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public ProjectEquipment setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Date getProjectEndDate() { return ProjectEndDate; }
        public ProjectEquipment setProjectEndDate(Date value) { this.ProjectEndDate = value; return this; }
        public Date getFirstJobUseDate() { return FirstJobUseDate; }
        public ProjectEquipment setFirstJobUseDate(Date value) { this.FirstJobUseDate = value; return this; }
        public Date getLastJobUseDate() { return LastJobUseDate; }
        public ProjectEquipment setLastJobUseDate(Date value) { this.LastJobUseDate = value; return this; }
        public BigDecimal getEquipmentRate() { return EquipmentRate; }
        public ProjectEquipment setEquipmentRate(BigDecimal value) { this.EquipmentRate = value; return this; }
        public Integer getJobID() { return JobID; }
        public ProjectEquipment setJobID(Integer value) { this.JobID = value; return this; }
        public BigDecimal getBilledEquipmentRate() { return BilledEquipmentRate; }
        public ProjectEquipment setBilledEquipmentRate(BigDecimal value) { this.BilledEquipmentRate = value; return this; }
        public String getStatus() { return Status; }
        public ProjectEquipment setStatus(String value) { this.Status = value; return this; }
        public String getSource() { return Source; }
        public ProjectEquipment setSource(String value) { this.Source = value; return this; }
        public Integer getOverlapBookings() { return OverlapBookings; }
        public ProjectEquipment setOverlapBookings(Integer value) { this.OverlapBookings = value; return this; }
        public Boolean isHasBookingConflict() { return HasBookingConflict; }
        public ProjectEquipment setHasBookingConflict(Boolean value) { this.HasBookingConflict = value; return this; }
        public String getConflictJobs() { return ConflictJobs; }
        public ProjectEquipment setConflictJobs(String value) { this.ConflictJobs = value; return this; }
    }

    public static class Equipment
    {
        public Integer EquipmentID = null;
        public String EquipmentName = null;
        public Short EquipmentTypeID = null;
        public String Manufacturer = null;
        public String EquipmentType = null;
        public String SerialNumber = null;
        public String BarCode = null;
        public String EquipmentLocation = null;
        public String ImageURL = null;
        public String ProductDetailsURL = null;
        public Date RecordCreatedDate = null;
        public UUID CreatedByUID = null;
        public Boolean Active = null;
        public String Notes = null;
        public BigDecimal Rate = null;
        public UUID BranchId = null;
        public String BranchName = null;
        public String Ownership = null;
        public String RentalVendor = null;
        public Date RentalStart = null;
        public Date RentalEnd = null;
        public ArrayList<Project> Projects = new ArrayList<Project>();
        
        public Integer getEquipmentID() { return EquipmentID; }
        public Equipment setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public Equipment setEquipmentName(String value) { this.EquipmentName = value; return this; }
        public Short getEquipmentTypeID() { return EquipmentTypeID; }
        public Equipment setEquipmentTypeID(Short value) { this.EquipmentTypeID = value; return this; }
        public String getManufacturer() { return Manufacturer; }
        public Equipment setManufacturer(String value) { this.Manufacturer = value; return this; }
        public String getEquipmentType() { return EquipmentType; }
        public Equipment setEquipmentType(String value) { this.EquipmentType = value; return this; }
        public String getSerialNumber() { return SerialNumber; }
        public Equipment setSerialNumber(String value) { this.SerialNumber = value; return this; }
        public String getBarCode() { return BarCode; }
        public Equipment setBarCode(String value) { this.BarCode = value; return this; }
        public String getEquipmentLocation() { return EquipmentLocation; }
        public Equipment setEquipmentLocation(String value) { this.EquipmentLocation = value; return this; }
        public String getImageURL() { return ImageURL; }
        public Equipment setImageURL(String value) { this.ImageURL = value; return this; }
        public String getProductDetailsURL() { return ProductDetailsURL; }
        public Equipment setProductDetailsURL(String value) { this.ProductDetailsURL = value; return this; }
        public Date getRecordCreatedDate() { return RecordCreatedDate; }
        public Equipment setRecordCreatedDate(Date value) { this.RecordCreatedDate = value; return this; }
        public UUID getCreatedByUID() { return CreatedByUID; }
        public Equipment setCreatedByUID(UUID value) { this.CreatedByUID = value; return this; }
        public Boolean isActive() { return Active; }
        public Equipment setActive(Boolean value) { this.Active = value; return this; }
        public String getNotes() { return Notes; }
        public Equipment setNotes(String value) { this.Notes = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public Equipment setRate(BigDecimal value) { this.Rate = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public Equipment setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getBranchName() { return BranchName; }
        public Equipment setBranchName(String value) { this.BranchName = value; return this; }
        public String getOwnership() { return Ownership; }
        public Equipment setOwnership(String value) { this.Ownership = value; return this; }
        public String getRentalVendor() { return RentalVendor; }
        public Equipment setRentalVendor(String value) { this.RentalVendor = value; return this; }
        public Date getRentalStart() { return RentalStart; }
        public Equipment setRentalStart(Date value) { this.RentalStart = value; return this; }
        public Date getRentalEnd() { return RentalEnd; }
        public Equipment setRentalEnd(Date value) { this.RentalEnd = value; return this; }
        public ArrayList<Project> getProjects() { return Projects; }
        public Equipment setProjects(ArrayList<Project> value) { this.Projects = value; return this; }
    }

    public static class Project
    {
        public Integer ProjectID = null;
        public UUID ProjectUID = null;
        public String ProjectName = null;
        public String ImageURL = null;
        public String ImageKey = null;
        public String ClientName = null;
        public String ClientPhone = null;
        public String ClientEmail = null;
        public Boolean NotifyCustomerOnVisitCompletion = null;
        public Integer ClientContactID = null;
        public Integer ProjectManagerID = null;
        public String ProjectManagerName = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public Date ActualStartDate = null;
        public Date ActualEndDate = null;
        public Integer JobCount = null;
        public Integer CrewMemberCount = null;
        public String CrewAvatarsJson = null;
        public String CrewNamesSearch = null;
        public Integer EquipmentCount = null;
        public Integer MaterialCount = null;
        public Short ProjectStatusID = null;
        public String ProjectStatusDescription = null;
        public BigDecimal Budget = null;
        public BigDecimal CostToDate = null;
        public String ProjectLocation = null;
        public String ProjectType = null;
        public String ProjectSponsor = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public String ProjectDescription = null;
        public String Scope = null;
        public Integer StatusId = null;
        public UUID BranchId = null;
        public String BranchName = null;
        public Location Location = null;
        
        public Integer getProjectID() { return ProjectID; }
        public Project setProjectID(Integer value) { this.ProjectID = value; return this; }
        public UUID getProjectUID() { return ProjectUID; }
        public Project setProjectUID(UUID value) { this.ProjectUID = value; return this; }
        public String getProjectName() { return ProjectName; }
        public Project setProjectName(String value) { this.ProjectName = value; return this; }
        public String getImageURL() { return ImageURL; }
        public Project setImageURL(String value) { this.ImageURL = value; return this; }
        public String getImageKey() { return ImageKey; }
        public Project setImageKey(String value) { this.ImageKey = value; return this; }
        public String getClientName() { return ClientName; }
        public Project setClientName(String value) { this.ClientName = value; return this; }
        public String getClientPhone() { return ClientPhone; }
        public Project setClientPhone(String value) { this.ClientPhone = value; return this; }
        public String getClientEmail() { return ClientEmail; }
        public Project setClientEmail(String value) { this.ClientEmail = value; return this; }
        public Boolean isNotifyCustomerOnVisitCompletion() { return NotifyCustomerOnVisitCompletion; }
        public Project setNotifyCustomerOnVisitCompletion(Boolean value) { this.NotifyCustomerOnVisitCompletion = value; return this; }
        public Integer getClientContactID() { return ClientContactID; }
        public Project setClientContactID(Integer value) { this.ClientContactID = value; return this; }
        public Integer getProjectManagerID() { return ProjectManagerID; }
        public Project setProjectManagerID(Integer value) { this.ProjectManagerID = value; return this; }
        public String getProjectManagerName() { return ProjectManagerName; }
        public Project setProjectManagerName(String value) { this.ProjectManagerName = value; return this; }
        public Date getStartDate() { return StartDate; }
        public Project setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public Project setEndDate(Date value) { this.EndDate = value; return this; }
        public Date getActualStartDate() { return ActualStartDate; }
        public Project setActualStartDate(Date value) { this.ActualStartDate = value; return this; }
        public Date getActualEndDate() { return ActualEndDate; }
        public Project setActualEndDate(Date value) { this.ActualEndDate = value; return this; }
        public Integer getJobCount() { return JobCount; }
        public Project setJobCount(Integer value) { this.JobCount = value; return this; }
        public Integer getCrewMemberCount() { return CrewMemberCount; }
        public Project setCrewMemberCount(Integer value) { this.CrewMemberCount = value; return this; }
        public String getCrewAvatarsJson() { return CrewAvatarsJson; }
        public Project setCrewAvatarsJson(String value) { this.CrewAvatarsJson = value; return this; }
        public String getCrewNamesSearch() { return CrewNamesSearch; }
        public Project setCrewNamesSearch(String value) { this.CrewNamesSearch = value; return this; }
        public Integer getEquipmentCount() { return EquipmentCount; }
        public Project setEquipmentCount(Integer value) { this.EquipmentCount = value; return this; }
        public Integer getMaterialCount() { return MaterialCount; }
        public Project setMaterialCount(Integer value) { this.MaterialCount = value; return this; }
        public Short getProjectStatusID() { return ProjectStatusID; }
        public Project setProjectStatusID(Short value) { this.ProjectStatusID = value; return this; }
        public String getProjectStatusDescription() { return ProjectStatusDescription; }
        public Project setProjectStatusDescription(String value) { this.ProjectStatusDescription = value; return this; }
        public BigDecimal getBudget() { return Budget; }
        public Project setBudget(BigDecimal value) { this.Budget = value; return this; }
        public BigDecimal getCostToDate() { return CostToDate; }
        public Project setCostToDate(BigDecimal value) { this.CostToDate = value; return this; }
        public String getProjectLocation() { return ProjectLocation; }
        public Project setProjectLocation(String value) { this.ProjectLocation = value; return this; }
        public String getProjectType() { return ProjectType; }
        public Project setProjectType(String value) { this.ProjectType = value; return this; }
        public String getProjectSponsor() { return ProjectSponsor; }
        public Project setProjectSponsor(String value) { this.ProjectSponsor = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Project setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public Project setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public Project setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public String getProjectDescription() { return ProjectDescription; }
        public Project setProjectDescription(String value) { this.ProjectDescription = value; return this; }
        public String getScope() { return Scope; }
        public Project setScope(String value) { this.Scope = value; return this; }
        public Integer getStatusId() { return StatusId; }
        public Project setStatusId(Integer value) { this.StatusId = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public Project setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getBranchName() { return BranchName; }
        public Project setBranchName(String value) { this.BranchName = value; return this; }
        public Location getLocation() { return Location; }
        public Project setLocation(Location value) { this.Location = value; return this; }
    }

    public static class Location
    {
        public UUID Id = null;
        public UUID ClientId = null;
        public String Name = null;
        public String Address1 = null;
        public String Address2 = null;
        public String City = null;
        public String State = null;
        public String Zip = null;
        public String Phone = null;
        public String Fax = null;
        public String URL = null;
        public String Email = null;
        public String TimeZone = null;
        public Boolean Active = null;
        public Date EntDate = null;
        public Date ModDate = null;
        public String LocationImage = null;
        
        public UUID getId() { return Id; }
        public Location setId(UUID value) { this.Id = value; return this; }
        public UUID getClientId() { return ClientId; }
        public Location setClientId(UUID value) { this.ClientId = value; return this; }
        public String getName() { return Name; }
        public Location setName(String value) { this.Name = value; return this; }
        public String getAddress1() { return Address1; }
        public Location setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public Location setAddress2(String value) { this.Address2 = value; return this; }
        public String getCity() { return City; }
        public Location setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public Location setState(String value) { this.State = value; return this; }
        public String getZip() { return Zip; }
        public Location setZip(String value) { this.Zip = value; return this; }
        public String getPhone() { return Phone; }
        public Location setPhone(String value) { this.Phone = value; return this; }
        public String getFax() { return Fax; }
        public Location setFax(String value) { this.Fax = value; return this; }
        public String getUrl() { return URL; }
        public Location setUrl(String value) { this.URL = value; return this; }
        public String getEmail() { return Email; }
        public Location setEmail(String value) { this.Email = value; return this; }
        public String getTimeZone() { return TimeZone; }
        public Location setTimeZone(String value) { this.TimeZone = value; return this; }
        public Boolean isActive() { return Active; }
        public Location setActive(Boolean value) { this.Active = value; return this; }
        public Date getEntDate() { return EntDate; }
        public Location setEntDate(Date value) { this.EntDate = value; return this; }
        public Date getModDate() { return ModDate; }
        public Location setModDate(Date value) { this.ModDate = value; return this; }
        public String getLocationImage() { return LocationImage; }
        public Location setLocationImage(String value) { this.LocationImage = value; return this; }
    }

    public static class ProjectEquipmentResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ProjectEquipment> ProjectEquipment = new ArrayList<ProjectEquipment>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ProjectEquipmentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ProjectEquipment> getProjectEquipment() { return ProjectEquipment; }
        public ProjectEquipmentResponse setProjectEquipment(ArrayList<ProjectEquipment> value) { this.ProjectEquipment = value; return this; }
    }

}

Java ProjectEquipmentRequest 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.

POST /v1/ProjectEquipment HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectEquipmentID":0,"ProjectEquipment":[{"ProjectEquipmentID":0,"ProjectID":0,"ProjectEndDate":"0001-01-01T00:00:00.0000000","FirstJobUseDate":"0001-01-01T00:00:00.0000000","LastJobUseDate":"0001-01-01T00:00:00.0000000","EquipmentRate":0,"JobID":0,"BilledEquipmentRate":0,"Status":"String","Source":"String","OverlapBookings":0,"HasBookingConflict":false,"ConflictJobs":"String","EquipmentID":0,"EquipmentName":"String","EquipmentTypeID":0,"Manufacturer":"String","EquipmentType":"String","SerialNumber":"String","BarCode":"String","EquipmentLocation":"String","ImageURL":"String","ProductDetailsURL":"String","RecordCreatedDate":"0001-01-01T00:00:00.0000000","CreatedByUID":"00000000000000000000000000000000","Active":false,"Notes":"String","Rate":0,"BranchId":"00000000000000000000000000000000","BranchName":"String","Ownership":"String","RentalVendor":"String","RentalStart":"0001-01-01T00:00:00.0000000","RentalEnd":"0001-01-01T00:00:00.0000000","Projects":[{"ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","ImageURL":"String","ImageKey":"String","ClientName":"String","ClientPhone":"String","ClientEmail":"String","NotifyCustomerOnVisitCompletion":false,"ClientContactID":0,"ProjectManagerID":0,"ProjectManagerName":"String","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","JobCount":0,"CrewMemberCount":0,"CrewAvatarsJson":"String","CrewNamesSearch":"String","EquipmentCount":0,"MaterialCount":0,"ProjectStatusID":0,"ProjectStatusDescription":"String","Budget":0,"CostToDate":0,"ProjectLocation":"String","ProjectType":"String","ProjectSponsor":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","ProjectDescription":"String","Scope":"String","StatusId":0,"BranchId":"00000000000000000000000000000000","BranchName":"String","Location":{"Id":"00000000000000000000000000000000","ClientId":"00000000000000000000000000000000","Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Phone":"String","Fax":"String","URL":"String","Email":"String","TimeZone":"String","Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","LocationImage":"String"}}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectEquipment":[{"ProjectEquipmentID":0,"ProjectID":0,"ProjectEndDate":"0001-01-01T00:00:00.0000000","FirstJobUseDate":"0001-01-01T00:00:00.0000000","LastJobUseDate":"0001-01-01T00:00:00.0000000","EquipmentRate":0,"JobID":0,"BilledEquipmentRate":0,"Status":"String","Source":"String","OverlapBookings":0,"HasBookingConflict":false,"ConflictJobs":"String","EquipmentID":0,"EquipmentName":"String","EquipmentTypeID":0,"Manufacturer":"String","EquipmentType":"String","SerialNumber":"String","BarCode":"String","EquipmentLocation":"String","ImageURL":"String","ProductDetailsURL":"String","RecordCreatedDate":"0001-01-01T00:00:00.0000000","CreatedByUID":"00000000000000000000000000000000","Active":false,"Notes":"String","Rate":0,"BranchId":"00000000000000000000000000000000","BranchName":"String","Ownership":"String","RentalVendor":"String","RentalStart":"0001-01-01T00:00:00.0000000","RentalEnd":"0001-01-01T00:00:00.0000000","Projects":[{"ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","ImageURL":"String","ImageKey":"String","ClientName":"String","ClientPhone":"String","ClientEmail":"String","NotifyCustomerOnVisitCompletion":false,"ClientContactID":0,"ProjectManagerID":0,"ProjectManagerName":"String","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","JobCount":0,"CrewMemberCount":0,"CrewAvatarsJson":"String","CrewNamesSearch":"String","EquipmentCount":0,"MaterialCount":0,"ProjectStatusID":0,"ProjectStatusDescription":"String","Budget":0,"CostToDate":0,"ProjectLocation":"String","ProjectType":"String","ProjectSponsor":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","ProjectDescription":"String","Scope":"String","StatusId":0,"BranchId":"00000000000000000000000000000000","BranchName":"String","Location":{"Id":"00000000000000000000000000000000","ClientId":"00000000000000000000000000000000","Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Phone":"String","Fax":"String","URL":"String","Email":"String","TimeZone":"String","Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","LocationImage":"String"}}]}]}