001package com.plivo.api.models.number; 002 003import com.plivo.api.models.base.ListResponse; 004import com.plivo.api.models.base.Lister; 005import com.plivo.api.util.PropertyFilter; 006import retrofit2.Call; 007 008public class NumberLister extends Lister<Number> { 009 010 private NumberType numberType; 011 private String numberStartswith; 012 private String subaccount; 013 private String alias; 014 private String services; 015 private String tendlcRegistrationStatus; 016 private String tendlcCampaignId; 017 private String tollFreeSmsVerification; 018 private PropertyFilter<String> renewalDate; 019 private String cnamLookup; 020 private String tollFreeSmsVerificationOrderStatus; 021 022 public NumberType numberType() { 023 return this.numberType; 024 } 025 026 public String numberStartswith() { 027 return this.numberStartswith; 028 } 029 030 public String subaccount() { 031 return this.subaccount; 032 } 033 034 public String alias() { 035 return this.alias; 036 } 037 038 public String services() { 039 return this.services; 040 } 041 042 public String tendlcRegistrationStatus() { 043 return this.tendlcRegistrationStatus; 044 } 045 046 public String tendlcCampaignId() { 047 return this.tendlcCampaignId; 048 } 049 050 public String tollFreeSmsVerification() { 051 return this.tollFreeSmsVerification; 052 } 053 public PropertyFilter<String> renewalDate() { 054 return this.renewalDate; 055 } 056 public String cnamLookup() { 057 return this.cnamLookup; 058 } 059 public String tollFreeSmsVerificationOrderStatus() { 060 return this.tollFreeSmsVerificationOrderStatus; 061 } 062 public NumberLister numberType(final NumberType numberType) { 063 this.numberType = numberType; 064 return this; 065 } 066 067 public NumberLister renewalDate(final PropertyFilter<String> renewalDate) { 068 this.renewalDate = renewalDate; 069 return this; 070 } 071 072 public NumberLister cnamLookup(final String cnamLookup) { 073 this.cnamLookup = cnamLookup; 074 return this; 075 } 076 077 public NumberLister tollFreeSmsVerificationOrderStatus(final String tollFreeSmsVerificationOrderStatus) { 078 this.tollFreeSmsVerificationOrderStatus = tollFreeSmsVerificationOrderStatus; 079 return this; 080 } 081 082 public NumberLister numberStartswith(final String numberStartswith) { 083 this.numberStartswith = numberStartswith; 084 return this; 085 } 086 087 public NumberLister subaccount(final String subaccount) { 088 this.subaccount = subaccount; 089 return this; 090 } 091 092 public NumberLister alias(final String alias) { 093 this.alias = alias; 094 return this; 095 } 096 097 public NumberLister services(final String services) { 098 this.services = services; 099 return this; 100 } 101 102 public NumberLister tendlcRegistrationStatus(final String tendlcRegistrationStatus) { 103 this.tendlcRegistrationStatus = tendlcRegistrationStatus; 104 return this; 105 } 106 107 public NumberLister tendlcCampaignId(final String tendlcCampaignId) { 108 this.tendlcCampaignId = tendlcCampaignId; 109 return this; 110 } 111 112 public NumberLister tollFreeSMSVerification(final String tollFreeSmsVerification) { 113 this.tollFreeSmsVerification = tollFreeSmsVerification; 114 return this; 115 } 116 117 @Override 118 protected Call<ListResponse<Number>> obtainCall() { 119 return client().getApiService().numberList(client().getAuthId(), toMap()); 120 } 121}