com.ringcentral.definitions.CallLogCallerInfo Maven / Gradle / Ivy
package com.ringcentral.definitions;
/**
* Information on caller ('from') or callee ('to')
*/
public class CallLogCallerInfo {
/**
* Phone number of a party. Usually it is a plain number including country and area code like 18661234567. But sometimes it could be returned from database with some formatting applied, for example (866)123-4567. This property is filled in all cases where parties communicate by means of global phone numbers, for example when calling to direct numbers or sending/receiving SMS
*/
public String phoneNumber;
/**
* Extension short number (usually 3 or 4 digits). This property is filled when parties communicate by means of short internal numbers, for example when calling to other extension or sending/receiving Company Pager message
*/
public String extensionNumber;
/**
* Internal identifier of an extension
*/
public String extensionId;
/**
* Contains party location (city, state) if one can be determined from phoneNumber. This property is filled only when phoneNumber is not empty and server can calculate location information from it (for example, this information is unavailable for US toll-free numbers)
*/
public String location;
/**
* Symbolic name associated with a party. If the phone does not belong to the known extension, only the location is returned, the name is not determined then
*/
public String name;
/**
*
*/
public CallLogRecordDeviceInfo device;
public CallLogCallerInfo phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
public CallLogCallerInfo extensionNumber(String extensionNumber) {
this.extensionNumber = extensionNumber;
return this;
}
public CallLogCallerInfo extensionId(String extensionId) {
this.extensionId = extensionId;
return this;
}
public CallLogCallerInfo location(String location) {
this.location = location;
return this;
}
public CallLogCallerInfo name(String name) {
this.name = name;
return this;
}
public CallLogCallerInfo device(CallLogRecordDeviceInfo device) {
this.device = device;
return this;
}
}