| GET,POST,PUT,DELETE,OPTIONS | /v1/ProjectCrew/Recruits/{ProjectID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/ProjectCrew/Recruits/Search/{Tags} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ProjectCrewRecruitsRequest
{
public Integer ProjectID = null;
public String Tags = null;
public Integer getProjectID() { return ProjectID; }
public ProjectCrewRecruitsRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getTags() { return Tags; }
public ProjectCrewRecruitsRequest setTags(String value) { this.Tags = value; return this; }
}
public static class ProjectCrewMembersResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<ProjectCrewMember> ProjectCrewMembers = new ArrayList<ProjectCrewMember>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ProjectCrewMembersResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<ProjectCrewMember> getProjectCrewMembers() { return ProjectCrewMembers; }
public ProjectCrewMembersResponse setProjectCrewMembers(ArrayList<ProjectCrewMember> value) { this.ProjectCrewMembers = value; return this; }
}
public static class ProjectCrewMember extends Contact
{
public Integer ProjectCrewContactID = null;
public Integer ProjectID = null;
public Integer CrewID = null;
public BigDecimal CrewRate = null;
public BigDecimal BilledCrewRate = null;
public Integer ProjectCrewID = null;
public String Status = null;
public Date FirstAddedDate = null;
public Date DateAddedToThisProject = null;
public Integer getProjectCrewContactID() { return ProjectCrewContactID; }
public ProjectCrewMember setProjectCrewContactID(Integer value) { this.ProjectCrewContactID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public ProjectCrewMember setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getCrewID() { return CrewID; }
public ProjectCrewMember setCrewID(Integer value) { this.CrewID = value; return this; }
public BigDecimal getCrewRate() { return CrewRate; }
public ProjectCrewMember setCrewRate(BigDecimal value) { this.CrewRate = value; return this; }
public BigDecimal getBilledCrewRate() { return BilledCrewRate; }
public ProjectCrewMember setBilledCrewRate(BigDecimal value) { this.BilledCrewRate = value; return this; }
public Integer getProjectCrewID() { return ProjectCrewID; }
public ProjectCrewMember setProjectCrewID(Integer value) { this.ProjectCrewID = value; return this; }
public String getStatus() { return Status; }
public ProjectCrewMember setStatus(String value) { this.Status = value; return this; }
public Date getFirstAddedDate() { return FirstAddedDate; }
public ProjectCrewMember setFirstAddedDate(Date value) { this.FirstAddedDate = value; return this; }
public Date getDateAddedToThisProject() { return DateAddedToThisProject; }
public ProjectCrewMember setDateAddedToThisProject(Date value) { this.DateAddedToThisProject = value; return this; }
}
public static class Contact
{
public Integer ContactId = null;
public Integer ContactType = null;
public String FirstName = null;
public String LastName = null;
public String Name = null;
public String Role = null;
public String Title = null;
public String EmailWork = null;
public String EmailPersonal = null;
public String District = null;
public Integer DistrictID = null;
public String School = null;
public Long SchoolID = null;
public String State = null;
public String StateName = null;
public Long StateID = null;
public Long CountyID = null;
public String County = null;
public String Phone = null;
public String Department = null;
public String Flow = null;
public Date LastContact = null;
public Boolean DoNotContact = null;
public Boolean Active = null;
public Integer AgentId = null;
public String PhoneAlt = null;
public Integer PeraContactId = null;
public String RoomNumber = null;
public Integer SourceTypeId = null;
public String SourceTypeDesc = null;
public String SourceNote = null;
public Integer ContactStatusId = null;
public String ContactStatusDesc = null;
public String SSN = null;
public Date DateOfBirth = null;
public Boolean Deleted = null;
public Boolean IsShared = null;
public String address_line1 = null;
public String address_city = null;
public String address_state = null;
public String address_zip = null;
public String DeletedBy = null;
public Date DeletedDateTimeUtc = null;
public Boolean HasNBC = null;
public Boolean HasFactFinderSheet = null;
public String MiddleInitial = null;
public String Tags = null;
public Date DateCreated = null;
public String PhoneLabel = null;
public String AltPhoneLabel = null;
public String Carriers = null;
public String ContactImage = null;
public String CompanyAffiliation = null;
public String AdditionalInformation = null;
public Boolean HasGiftCard = null;
public Integer ContactCategory = null;
public Integer WritingAgentId = null;
public String WritingAgentName = null;
public String MaritalStatus = null;
public BigDecimal TotalDebtAmount = null;
public Integer NumberOfDebtAccounts = null;
public Integer FactFinderCodeId = null;
public String BusinessName = null;
public String DBA = null;
public UUID ContactGUID = null;
public Date ProjectEndDate = null;
public Integer Rate = null;
public Integer JobID = null;
public String JobName = null;
public Integer JobCount = null;
public Boolean Locked = null;
public Integer LockedByAgentId = null;
public Date LockedTimestamp = null;
public String Initials = null;
public String ContactCategoryName = null;
public Boolean SMSOptIn = null;
public Integer getContactId() { return ContactId; }
public Contact setContactId(Integer value) { this.ContactId = value; return this; }
public Integer getContactType() { return ContactType; }
public Contact setContactType(Integer value) { this.ContactType = value; return this; }
public String getFirstName() { return FirstName; }
public Contact setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Contact setLastName(String value) { this.LastName = value; return this; }
public String getName() { return Name; }
public Contact setName(String value) { this.Name = value; return this; }
public String getRole() { return Role; }
public Contact setRole(String value) { this.Role = value; return this; }
public String getTitle() { return Title; }
public Contact setTitle(String value) { this.Title = value; return this; }
public String getEmailWork() { return EmailWork; }
public Contact setEmailWork(String value) { this.EmailWork = value; return this; }
public String getEmailPersonal() { return EmailPersonal; }
public Contact setEmailPersonal(String value) { this.EmailPersonal = value; return this; }
public String getDistrict() { return District; }
public Contact setDistrict(String value) { this.District = value; return this; }
public Integer getDistrictID() { return DistrictID; }
public Contact setDistrictID(Integer value) { this.DistrictID = value; return this; }
public String getSchool() { return School; }
public Contact setSchool(String value) { this.School = value; return this; }
public Long getSchoolID() { return SchoolID; }
public Contact setSchoolID(Long value) { this.SchoolID = value; return this; }
public String getState() { return State; }
public Contact setState(String value) { this.State = value; return this; }
public String getStateName() { return StateName; }
public Contact setStateName(String value) { this.StateName = value; return this; }
public Long getStateID() { return StateID; }
public Contact setStateID(Long value) { this.StateID = value; return this; }
public Long getCountyID() { return CountyID; }
public Contact setCountyID(Long value) { this.CountyID = value; return this; }
public String getCounty() { return County; }
public Contact setCounty(String value) { this.County = value; return this; }
public String getPhone() { return Phone; }
public Contact setPhone(String value) { this.Phone = value; return this; }
public String getDepartment() { return Department; }
public Contact setDepartment(String value) { this.Department = value; return this; }
public String getFlow() { return Flow; }
public Contact setFlow(String value) { this.Flow = value; return this; }
public Date getLastContact() { return LastContact; }
public Contact setLastContact(Date value) { this.LastContact = value; return this; }
public Boolean isDoNotContact() { return DoNotContact; }
public Contact setDoNotContact(Boolean value) { this.DoNotContact = value; return this; }
public Boolean isActive() { return Active; }
public Contact setActive(Boolean value) { this.Active = value; return this; }
public Integer getAgentId() { return AgentId; }
public Contact setAgentId(Integer value) { this.AgentId = value; return this; }
public String getPhoneAlt() { return PhoneAlt; }
public Contact setPhoneAlt(String value) { this.PhoneAlt = value; return this; }
public Integer getPeraContactId() { return PeraContactId; }
public Contact setPeraContactId(Integer value) { this.PeraContactId = value; return this; }
public String getRoomNumber() { return RoomNumber; }
public Contact setRoomNumber(String value) { this.RoomNumber = value; return this; }
public Integer getSourceTypeId() { return SourceTypeId; }
public Contact setSourceTypeId(Integer value) { this.SourceTypeId = value; return this; }
public String getSourceTypeDesc() { return SourceTypeDesc; }
public Contact setSourceTypeDesc(String value) { this.SourceTypeDesc = value; return this; }
public String getSourceNote() { return SourceNote; }
public Contact setSourceNote(String value) { this.SourceNote = value; return this; }
public Integer getContactStatusId() { return ContactStatusId; }
public Contact setContactStatusId(Integer value) { this.ContactStatusId = value; return this; }
public String getContactStatusDesc() { return ContactStatusDesc; }
public Contact setContactStatusDesc(String value) { this.ContactStatusDesc = value; return this; }
public String getSsn() { return SSN; }
public Contact setSsn(String value) { this.SSN = value; return this; }
public Date getDateOfBirth() { return DateOfBirth; }
public Contact setDateOfBirth(Date value) { this.DateOfBirth = value; return this; }
public Boolean isDeleted() { return Deleted; }
public Contact setDeleted(Boolean value) { this.Deleted = value; return this; }
public Boolean getIsShared() { return IsShared; }
public Contact setIsShared(Boolean value) { this.IsShared = value; return this; }
public String getAddressLine1() { return address_line1; }
public Contact setAddressLine1(String value) { this.address_line1 = value; return this; }
public String getAddressCity() { return address_city; }
public Contact setAddressCity(String value) { this.address_city = value; return this; }
public String getAddressState() { return address_state; }
public Contact setAddressState(String value) { this.address_state = value; return this; }
public String getAddressZip() { return address_zip; }
public Contact setAddressZip(String value) { this.address_zip = value; return this; }
public String getDeletedBy() { return DeletedBy; }
public Contact setDeletedBy(String value) { this.DeletedBy = value; return this; }
public Date getDeletedDateTimeUtc() { return DeletedDateTimeUtc; }
public Contact setDeletedDateTimeUtc(Date value) { this.DeletedDateTimeUtc = value; return this; }
public Boolean isHasNBC() { return HasNBC; }
public Contact setHasNBC(Boolean value) { this.HasNBC = value; return this; }
public Boolean isHasFactFinderSheet() { return HasFactFinderSheet; }
public Contact setHasFactFinderSheet(Boolean value) { this.HasFactFinderSheet = value; return this; }
public String getMiddleInitial() { return MiddleInitial; }
public Contact setMiddleInitial(String value) { this.MiddleInitial = value; return this; }
public String getTags() { return Tags; }
public Contact setTags(String value) { this.Tags = value; return this; }
public Date getDateCreated() { return DateCreated; }
public Contact setDateCreated(Date value) { this.DateCreated = value; return this; }
public String getPhoneLabel() { return PhoneLabel; }
public Contact setPhoneLabel(String value) { this.PhoneLabel = value; return this; }
public String getAltPhoneLabel() { return AltPhoneLabel; }
public Contact setAltPhoneLabel(String value) { this.AltPhoneLabel = value; return this; }
public String getCarriers() { return Carriers; }
public Contact setCarriers(String value) { this.Carriers = value; return this; }
public String getContactImage() { return ContactImage; }
public Contact setContactImage(String value) { this.ContactImage = value; return this; }
public String getCompanyAffiliation() { return CompanyAffiliation; }
public Contact setCompanyAffiliation(String value) { this.CompanyAffiliation = value; return this; }
public String getAdditionalInformation() { return AdditionalInformation; }
public Contact setAdditionalInformation(String value) { this.AdditionalInformation = value; return this; }
public Boolean isHasGiftCard() { return HasGiftCard; }
public Contact setHasGiftCard(Boolean value) { this.HasGiftCard = value; return this; }
public Integer getContactCategory() { return ContactCategory; }
public Contact setContactCategory(Integer value) { this.ContactCategory = value; return this; }
public Integer getWritingAgentId() { return WritingAgentId; }
public Contact setWritingAgentId(Integer value) { this.WritingAgentId = value; return this; }
public String getWritingAgentName() { return WritingAgentName; }
public Contact setWritingAgentName(String value) { this.WritingAgentName = value; return this; }
public String getMaritalStatus() { return MaritalStatus; }
public Contact setMaritalStatus(String value) { this.MaritalStatus = value; return this; }
public BigDecimal getTotalDebtAmount() { return TotalDebtAmount; }
public Contact setTotalDebtAmount(BigDecimal value) { this.TotalDebtAmount = value; return this; }
public Integer getNumberOfDebtAccounts() { return NumberOfDebtAccounts; }
public Contact setNumberOfDebtAccounts(Integer value) { this.NumberOfDebtAccounts = value; return this; }
public Integer getFactFinderCodeId() { return FactFinderCodeId; }
public Contact setFactFinderCodeId(Integer value) { this.FactFinderCodeId = value; return this; }
public String getBusinessName() { return BusinessName; }
public Contact setBusinessName(String value) { this.BusinessName = value; return this; }
public String getDba() { return DBA; }
public Contact setDba(String value) { this.DBA = value; return this; }
public UUID getContactGUID() { return ContactGUID; }
public Contact setContactGUID(UUID value) { this.ContactGUID = value; return this; }
public Date getProjectEndDate() { return ProjectEndDate; }
public Contact setProjectEndDate(Date value) { this.ProjectEndDate = value; return this; }
public Integer getRate() { return Rate; }
public Contact setRate(Integer value) { this.Rate = value; return this; }
public Integer getJobID() { return JobID; }
public Contact setJobID(Integer value) { this.JobID = value; return this; }
public String getJobName() { return JobName; }
public Contact setJobName(String value) { this.JobName = value; return this; }
public Integer getJobCount() { return JobCount; }
public Contact setJobCount(Integer value) { this.JobCount = value; return this; }
public Boolean isLocked() { return Locked; }
public Contact setLocked(Boolean value) { this.Locked = value; return this; }
public Integer getLockedByAgentId() { return LockedByAgentId; }
public Contact setLockedByAgentId(Integer value) { this.LockedByAgentId = value; return this; }
public Date getLockedTimestamp() { return LockedTimestamp; }
public Contact setLockedTimestamp(Date value) { this.LockedTimestamp = value; return this; }
public String getInitials() { return Initials; }
public Contact setInitials(String value) { this.Initials = value; return this; }
public String getContactCategoryName() { return ContactCategoryName; }
public Contact setContactCategoryName(String value) { this.ContactCategoryName = value; return this; }
public Boolean isSmsOptIn() { return SMSOptIn; }
public Contact setSmsOptIn(Boolean value) { this.SMSOptIn = value; return this; }
}
}
Java ProjectCrewRecruitsRequest 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/ProjectCrew/Recruits/{ProjectID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0,
Tags: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
ProjectCrewMembers:
[
{
ProjectCrewContactID: 0,
ProjectID: 0,
CrewID: 0,
CrewRate: 0,
BilledCrewRate: 0,
ProjectCrewID: 0,
Status: String,
FirstAddedDate: 0001-01-01,
DateAddedToThisProject: 0001-01-01,
ContactId: 0,
ContactType: 0,
FirstName: String,
LastName: String,
Name: String,
Role: String,
Title: String,
EmailWork: String,
EmailPersonal: String,
District: String,
DistrictID: 0,
School: String,
SchoolID: 0,
State: String,
StateName: String,
StateID: 0,
CountyID: 0,
County: String,
Phone: String,
Department: String,
Flow: String,
LastContact: 0001-01-01,
DoNotContact: False,
Active: False,
AgentId: 0,
PhoneAlt: String,
PeraContactId: 0,
RoomNumber: String,
SourceTypeId: 0,
SourceTypeDesc: String,
SourceNote: String,
ContactStatusId: 0,
ContactStatusDesc: String,
SSN: String,
DateOfBirth: 0001-01-01,
Deleted: False,
IsShared: False,
address_line1: String,
address_city: String,
address_state: String,
address_zip: String,
DeletedBy: String,
DeletedDateTimeUtc: 0001-01-01,
HasNBC: False,
HasFactFinderSheet: False,
MiddleInitial: String,
Tags: String,
DateCreated: 0001-01-01,
PhoneLabel: String,
AltPhoneLabel: String,
Carriers: String,
ContactImage: String,
CompanyAffiliation: String,
AdditionalInformation: String,
HasGiftCard: False,
ContactCategory: 0,
WritingAgentId: 0,
WritingAgentName: String,
MaritalStatus: String,
TotalDebtAmount: 0,
NumberOfDebtAccounts: 0,
FactFinderCodeId: 0,
BusinessName: String,
DBA: String,
ContactGUID: 00000000000000000000000000000000,
ProjectEndDate: 0001-01-01,
Rate: 0,
JobID: 0,
JobName: String,
JobCount: 0,
Locked: False,
LockedByAgentId: 0,
LockedTimestamp: 0001-01-01,
Initials: String,
ContactCategoryName: String,
SMSOptIn: False
}
]
}