com.google.firebase.database.PropertyName Java Examples

The following examples show how to use com.google.firebase.database.PropertyName. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomClassMapper.java    From firebase-admin-java with Apache License 2.0 5 votes vote down vote up
private static String annotatedName(AccessibleObject obj) {
  if (obj.isAnnotationPresent(PropertyName.class)) {
    PropertyName annotation = obj.getAnnotation(PropertyName.class);
    return annotation.value();
  }

  return null;
}
 
Example #2
Source File: CustomClassMapper.java    From firebase-android-sdk with Apache License 2.0 5 votes vote down vote up
private static String annotatedName(AccessibleObject obj) {
  if (obj.isAnnotationPresent(PropertyName.class)) {
    PropertyName annotation = obj.getAnnotation(PropertyName.class);
    return annotation.value();
  }

  return null;
}
 
Example #3
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("attributes")
public void setAttributes(Map<String, Object> attributes) {
    this.attributes = attributes;
}
 
Example #4
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("attributes")
public Map<String, Object> getAttributes() {
    return attributes;
}
 
Example #5
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("metadata")
public void setMetadata(Map<String, Object> metadata) {
    this.metadata = metadata;
}
 
Example #6
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("metadata")
public Map<String, Object> getMetadata() {
    return metadata;
}
 
Example #7
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("type")
public void setType(String type) {
    this.type = type;
}
 
Example #8
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("type")
public String getType() {
    return type;
}
 
Example #9
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("timestamp")
public void setTimestamp(Long timestamp) {
    this.timestamp = timestamp;
}
 
Example #10
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("timestamp")
public Long getTimestamp() {
    return this.timestamp;
}
 
Example #11
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("status")
public void setStatus(Long status) {
    this.status = status;
}
 
Example #12
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("status")
public Long getStatus() {
    return status;
}
 
Example #13
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("text")
public void setText(String text) {
    this.text = text;
}
 
Example #14
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("text")
public String getText() {
    return text;
}
 
Example #15
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("channel_type")
public void setChannelType(String channelType) {
    this.channelType = channelType;
}
 
Example #16
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("channel_type")
public String getChannelType() {
    return channelType;
}
 
Example #17
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("recipient_fullname")
public void setRecipientFullname(String recipientFullname) {
    this.recipientFullname = recipientFullname;
}
 
Example #18
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("recipient_fullname")
public String getRecipientFullname() {
    return recipientFullname;
}
 
Example #19
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("sender_fullname")
public void setSenderFullname(String senderFullname) {
    this.senderFullname = senderFullname;
}
 
Example #20
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("sender_fullname")
public String getSenderFullname() {
    return senderFullname;
}
 
Example #21
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("recipient")
public void setRecipient(String recipient) {
    this.recipient = recipient;
}
 
Example #22
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("recipient")
public String getRecipient() {
    return recipient;
}
 
Example #23
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("sender")
public void setSender(String sender) {
    this.sender = sender;
}
 
Example #24
Source File: Message.java    From chat21-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@PropertyName("sender")
public String getSender() {
    return sender;
}