Cochrane+ App API

<back to all web services

DeleteThunderBoltActions

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeleteThunderBoltActionsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
  <Description xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Description>
  <Heading xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Heading>
  <ModelState xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base" />
  <WasSuccessful xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">false</WasSuccessful>
  <DailyActionsNumber>0</DailyActionsNumber>
  <ThunderBoltActionEvents>
    <ThunderBoltActionEventData>
      <ActionId>0</ActionId>
      <ActionName>String</ActionName>
      <Color>String</Color>
      <CreatedDate>String</CreatedDate>
      <Id>0</Id>
      <Notes>String</Notes>
    </ThunderBoltActionEventData>
  </ThunderBoltActionEvents>
  <ThunderBoltActions>
    <ThunderBoltActionData>
      <ActionName>String</ActionName>
      <Color>String</Color>
      <ContactInteractionPlatforms xmlns:d4p1="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Shared">
        <d4p1:EnumOption>
          <d4p1:Label>String</d4p1:Label>
          <d4p1:Value>0</d4p1:Value>
        </d4p1:EnumOption>
      </ContactInteractionPlatforms>
      <DailyActionCount>0</DailyActionCount>
      <Id>0</Id>
      <ShowDateTimeInput>false</ShowDateTimeInput>
      <ShowEmailInput>false</ShowEmailInput>
      <ShowNumberInput>false</ShowNumberInput>
      <ShowPlatformInput>false</ShowPlatformInput>
    </ThunderBoltActionData>
  </ThunderBoltActions>
</DeleteThunderBoltActionsResponse>