001package com.plivo.api.models.recording; 002 003import com.plivo.api.models.base.BaseResource; 004 005public class Recording extends BaseResource { 006 007 private String addTime; 008 private String callUuid; 009 private String conferenceName; 010 private Float monthlyRecordingStorageAmount; 011 private Integer recordingStorageDuration; 012 private String recordingDurationMs; 013 private String recordingEndMs; 014 private String recordingFormat; 015 private String recordingStartMs; 016 private String recordingType; 017 private String recordingUrl; 018 private String resourceUri; 019 private String recordingId; 020 private Float recordingStorageRate; 021 private Integer roundedRecordingDuration; 022 private String fromNumber; 023 private String toNumber; 024 025 public String getFromNumber() { 026 return fromNumber; 027 } 028 029 public void setFromNumber(String fromNumber) { 030 this.fromNumber = fromNumber; 031 } 032 033 public String getToNumber() { 034 return toNumber; 035 } 036 037 public void setToNumber(String toNumber) { 038 this.toNumber = toNumber; 039 } 040 041 public static RecordingGetter getter(String id) { 042 return new RecordingGetter(id); 043 } 044 045 public static RecordingLister lister() { 046 return new RecordingLister(); 047 } 048 049 public static RecordingDeleter deleter(String id) { 050 return new RecordingDeleter(id); 051 } 052 053 /** 054 * @return The ID of the recording. 055 */ 056 public String getRecordingId() { 057 return recordingId; 058 } 059 060 /** 061 * @return The datetime string on which the recording was created on your account. 062 */ 063 public String getAddTime() { 064 return addTime; 065 } 066 067 /** 068 * @return The ID of the call on Plivo which was recorded. 069 */ 070 public String getCallUuid() { 071 return callUuid; 072 } 073 074 /** 075 * @return The name of the conference room which was recorded. This value will be null if it was a 076 * regular recording. 077 */ 078 public String getConferenceName() { 079 return conferenceName; 080 } 081 082 /** 083 * @return The duration of the recording in milliseconds. 084 */ 085 public String getRecordingDurationMs() { 086 return recordingDurationMs; 087 } 088 089 public String getRecordingEndMs() { 090 return recordingEndMs; 091 } 092 093 /** 094 * @return The format of the recording file. This can be either 'wav' or 'mp3'. 095 */ 096 public String getRecordingFormat() { 097 return recordingFormat; 098 } 099 100 public String getRecordingStartMs() { 101 return recordingStartMs; 102 } 103 104 /** 105 * @return The type of the recording. In the case where a conference was recorded, this value will 106 * be 'conference' or it will be 'normal' in case of a regular call. 107 */ 108 public String getRecordingType() { 109 return recordingType; 110 } 111 112 /** 113 * @return The URL of the recorded file. All our recordings are hosted on Amazon S3. 114 */ 115 public String getRecordingUrl() { 116 return recordingUrl; 117 } 118 119 public Float getMonthlyRecordingStorageAmount() { 120 return monthlyRecordingStorageAmount; 121 } 122 123 public Integer getRecordingStorageDuration() { 124 return recordingStorageDuration; 125 } 126 127 public Float getRecordingStorageRate() { 128 return recordingStorageRate; 129 } 130 131 public Integer getRoundedRecordingDuration() { 132 return roundedRecordingDuration; 133 } 134 135 public String getResourceUri() { 136 return resourceUri; 137 } 138 139 public RecordingDeleter deleter() { 140 return Recording.deleter(recordingId); 141 } 142 143 @Override 144 public String getId() { 145 return getRecordingId(); 146 } 147}