Руководство Разработчика для Cisco Cisco Prime Home 6.3
Cisco Prime Home – Integration Guide
OL-28557-01 v5.0.1
71
final JSONObject attributes = optJSONObject("attributes",new
JSONObject());
attributes.put("Subscriber.Address.1.Street",address.getStreet
());
attributes.put("Subscriber.Address.1.City",address.getCity());
attributes.put
JSONObject());
attributes.put("Subscriber.Address.1.Street",address.getStreet
());
attributes.put("Subscriber.Address.1.City",address.getCity());
attributes.put
("Subscriber.Address.1.State",
address.getState());
attributes.put("Subscriber.Address.1.PostalCode",address.getPo
stalCode());
attributes.put("Subscriber.Address.1.Type", "Home");
put("attributes", attributes);
attributes.put("Subscriber.Address.1.PostalCode",address.getPo
stalCode());
attributes.put("Subscriber.Address.1.Type", "Home");
put("attributes", attributes);
} catch (JSONException e) {
throw new RuntimeException(e);
}
}
public String getFullName() {
public String getFullName() {
final JSONObject attributes = optJSONObject("attributes", new
JSONObject());
return attributes.optString("Subscriber.FullName");
JSONObject());
return attributes.optString("Subscriber.FullName");
}
public void setFullName(final String fullName) {
public void setFullName(final String fullName) {
try {
final JSONObject attributes = optJSONObject("attributes",
new JSONObject());
attributes.put("Subscriber.FullName", fullName);
put("attributes", attributes);
new JSONObject());
attributes.put("Subscriber.FullName", fullName);
put("attributes", attributes);
} catch (JSONException e) {
throw new RuntimeException(e);
}
}
public String getEmailAddress() {
public String getEmailAddress() {
final JSONObject attributes = optJSONObject("attributes", new
JSONObject());
return attributes.optString("Subscriber.EmailAddress");
}
public void setEmailAddress(final String emailAddress) {
public void setEmailAddress(final String emailAddress) {
try {
final JSONObject attributes = optJSONObject("attributes", new
JSONObject());
attributes.put("Subscriber.EmailAddress", emailAddress);
put("attributes", attributes);
put("attributes", attributes);
} catch (JSONException e) {
throw new RuntimeException(e);
}
}
public String getPhoneNumber() {
public String getPhoneNumber() {
final JSONObject attributes = optJSONObject("attributes", new
JSONObject());
return attributes.optString("Subscriber.Phone.1.Number");
}
public void setPhoneNumber(final String phoneNumber) {
public void setPhoneNumber(final String phoneNumber) {
try {
final JSONObject attributes = optJSONObject("attributes",
new JSONObject());
attributes.put("Subscriber.Phone.1.Number", phoneNumber);
attributes.put("Subscriber.Phone.1.Type", "Home");
put("attributes", attributes);
attributes.put("Subscriber.Phone.1.Type", "Home");
put("attributes", attributes);
} catch (JSONException e) {
throw new RuntimeException(e);
}
}