| DELETE | /thunderbolt/delete |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DeleteThunderBoltActions extends ApiServiceRequest
{
public Integer id = null;
public Integer getId() { return id; }
public DeleteThunderBoltActions setId(Integer value) { this.id = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String apiKey = null;
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
public Double latitude = null;
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
public Double longitude = null;
public String getApiKey() { return apiKey; }
public ApiServiceRequest setApiKey(String value) { this.apiKey = value; return this; }
public Double getLatitude() { return latitude; }
public ApiServiceRequest setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public ApiServiceRequest setLongitude(Double value) { this.longitude = value; return this; }
}
public static class DeleteThunderBoltActionsResponse extends ApiServiceResponse
{
public Integer dailyActionsNumber = null;
public ArrayList<ThunderBoltActionData> thunderBoltActions = null;
public ArrayList<ThunderBoltActionEventData> thunderBoltActionEvents = null;
public Integer getDailyActionsNumber() { return dailyActionsNumber; }
public DeleteThunderBoltActionsResponse setDailyActionsNumber(Integer value) { this.dailyActionsNumber = value; return this; }
public ArrayList<ThunderBoltActionData> getThunderBoltActions() { return thunderBoltActions; }
public DeleteThunderBoltActionsResponse setThunderBoltActions(ArrayList<ThunderBoltActionData> value) { this.thunderBoltActions = value; return this; }
public ArrayList<ThunderBoltActionEventData> getThunderBoltActionEvents() { return thunderBoltActionEvents; }
public DeleteThunderBoltActionsResponse setThunderBoltActionEvents(ArrayList<ThunderBoltActionEventData> value) { this.thunderBoltActionEvents = value; return this; }
}
public static class ApiServiceResponse implements IServiceResponse
{
public String description = null;
public String heading = null;
public Boolean wasSuccessful = null;
public Object modelState = null;
public String getDescription() { return description; }
public ApiServiceResponse setDescription(String value) { this.description = value; return this; }
public String getHeading() { return heading; }
public ApiServiceResponse setHeading(String value) { this.heading = value; return this; }
public Boolean isWasSuccessful() { return wasSuccessful; }
public ApiServiceResponse setWasSuccessful(Boolean value) { this.wasSuccessful = value; return this; }
public Object getModelState() { return modelState; }
public ApiServiceResponse setModelState(Object value) { this.modelState = value; return this; }
}
public static class ThunderBoltActionData
{
public Integer id = null;
public String actionName = null;
public String color = null;
public Integer dailyActionCount = null;
public Boolean showNumberInput = null;
public Boolean showEmailInput = null;
public Boolean showPlatformInput = null;
public Boolean showDateTimeInput = null;
public ArrayList<EnumOption> contactInteractionPlatforms = null;
public Integer getId() { return id; }
public ThunderBoltActionData setId(Integer value) { this.id = value; return this; }
public String getActionName() { return actionName; }
public ThunderBoltActionData setActionName(String value) { this.actionName = value; return this; }
public String getColor() { return color; }
public ThunderBoltActionData setColor(String value) { this.color = value; return this; }
public Integer getDailyActionCount() { return dailyActionCount; }
public ThunderBoltActionData setDailyActionCount(Integer value) { this.dailyActionCount = value; return this; }
public Boolean isShowNumberInput() { return showNumberInput; }
public ThunderBoltActionData setShowNumberInput(Boolean value) { this.showNumberInput = value; return this; }
public Boolean isShowEmailInput() { return showEmailInput; }
public ThunderBoltActionData setShowEmailInput(Boolean value) { this.showEmailInput = value; return this; }
public Boolean isShowPlatformInput() { return showPlatformInput; }
public ThunderBoltActionData setShowPlatformInput(Boolean value) { this.showPlatformInput = value; return this; }
public Boolean isShowDateTimeInput() { return showDateTimeInput; }
public ThunderBoltActionData setShowDateTimeInput(Boolean value) { this.showDateTimeInput = value; return this; }
public ArrayList<EnumOption> getContactInteractionPlatforms() { return contactInteractionPlatforms; }
public ThunderBoltActionData setContactInteractionPlatforms(ArrayList<EnumOption> value) { this.contactInteractionPlatforms = value; return this; }
}
public static class EnumOption
{
public Integer value = null;
public String label = null;
public Integer getValue() { return value; }
public EnumOption setValue(Integer value) { this.value = value; return this; }
public String getLabel() { return label; }
public EnumOption setLabel(String value) { this.label = value; return this; }
}
public static class ThunderBoltActionEventData
{
public Integer id = null;
public String createdDate = null;
public Integer actionId = null;
public String actionName = null;
public String color = null;
public String notes = null;
public Integer getId() { return id; }
public ThunderBoltActionEventData setId(Integer value) { this.id = value; return this; }
public String getCreatedDate() { return createdDate; }
public ThunderBoltActionEventData setCreatedDate(String value) { this.createdDate = value; return this; }
public Integer getActionId() { return actionId; }
public ThunderBoltActionEventData setActionId(Integer value) { this.actionId = value; return this; }
public String getActionName() { return actionName; }
public ThunderBoltActionEventData setActionName(String value) { this.actionName = value; return this; }
public String getColor() { return color; }
public ThunderBoltActionEventData setColor(String value) { this.color = value; return this; }
public String getNotes() { return notes; }
public ThunderBoltActionEventData setNotes(String value) { this.notes = value; return this; }
}
}
Java DeleteThunderBoltActions 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.
DELETE /thunderbolt/delete HTTP/1.1 Host: cochraneplus-api-dev.happen.zone Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
dailyActionsNumber: 0,
thunderBoltActions:
[
{
id: 0,
actionName: String,
color: String,
dailyActionCount: 0,
showNumberInput: False,
showEmailInput: False,
showPlatformInput: False,
showDateTimeInput: False,
contactInteractionPlatforms:
[
{
value: 0,
label: String
}
]
}
],
thunderBoltActionEvents:
[
{
id: 0,
createdDate: String,
actionId: 0,
actionName: String,
color: String,
notes: String
}
],
description: String,
heading: String,
wasSuccessful: False,
modelState: {}
}