OfferFormModel.ts 1.08 KiB
export class OfferFormModel {
public readonly userId: number;
public zipCode: number | string;
public spaceType: string;
public otherSpaceType: string;
public spaceLocateCity: string;
public cityCode: number;
public availableTimeStart: Date | string;
public availableTimeEnd: Date | string;
public maxNumberOfPeople: number;
public spaceDetails: string;
public offering: boolean;
constructor(
userId = -1,
zipCode = "",
spaceType = "",
otherSpaceType = "",
spaceLocateCity = "",
cityCode = 0,
offering = false,
availableTimeStart = new Date(),
availableTimeEnd = new Date(),
maxNumberOfPeople = 0,
spaceDetails = ""
) {
this.userId = userId;
this.zipCode = zipCode;
this.spaceType = spaceType;
this.otherSpaceType = otherSpaceType;
this.spaceLocateCity = spaceLocateCity;
this.cityCode = cityCode;
this.offering = offering;
this.availableTimeStart = availableTimeStart;
this.availableTimeEnd = availableTimeEnd;
this.maxNumberOfPeople = maxNumberOfPeople;
this.spaceDetails = spaceDetails;
}
}