001package com.plivo.api.models.campaign; 002 003import com.plivo.api.models.base.Updater; 004import retrofit2.Call; 005 006public class CampaignUpdater extends Updater<CampaignUpdateResponse> { 007 private String campaignId; 008 private String resellerId; 009 private String description; 010 private String sample1; 011 private String sample2; 012 private String messageFlow; 013 private String helpMessage; 014 private String optinKeywords; 015 private String optinMessage; 016 private String optoutKeywords; 017 private String optoutMessage; 018 private String helpKeywords; 019 020 CampaignUpdater(String campaignId, String resellerId, String description, String sample1, String sample2, 021 String messageFlow, String helpMessage, String optinKeywords, String optinMessage, String optoutKeywords, 022 String optoutMessage, String helpKeywords) { 023 024 super(campaignId); 025 026 this.resellerId = resellerId; 027 this.description = description; 028 this.sample1 = sample1; 029 this.sample2 = sample2; 030 this.messageFlow = messageFlow; 031 this.helpMessage = helpMessage; 032 this.optinKeywords = optinKeywords; 033 this.optinMessage = optinMessage; 034 this.optoutKeywords = optoutKeywords; 035 this.optoutMessage = optoutMessage; 036 this.helpKeywords = helpKeywords; 037 } 038 039 public String campaignId() { 040 return this.campaignId; 041 } 042 043 public String resellerId() { 044 return this.resellerId; 045 } 046 047 public String description() { 048 return this.description; 049 } 050 051 public String sample1() { 052 return this.sample1; 053 } 054 055 public String sample2() { 056 return this.sample2; 057 } 058 059 public String messageFlow() { 060 return this.messageFlow; 061 } 062 063 public String helpMessage() { 064 return this.helpMessage; 065 } 066 067 public String optinKeywords() { 068 return this.optinKeywords; 069 } 070 071 public String optinMessage() { 072 return this.optinMessage; 073 } 074 075 public String optoutKeywords() { 076 return this.optoutKeywords; 077 } 078 079 public String optoutMessage() { 080 return this.optoutMessage; 081 } 082 083 public String helpKeywords() { 084 return this.helpKeywords; 085 } 086 087 @Override 088 protected Call<CampaignUpdateResponse> obtainCall() { 089 return client().getApiService().updateCampaign(client().getAuthId(), id, this); 090 } 091}