com.backendless.messaging.PublishMessageInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Commons lib for both server and client Java/Android SDKs
The newest version!
package com.backendless.messaging;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class PublishMessageInfo
{
private String messageId;
private long timestamp;
private Object message;
private String publisherId;
private String subtopic;
private List pushSinglecast;
private String pushBroadcast;
private String publishPolicy;
private String query;
private long publishAt;
private long repeatEvery;
private long repeatExpiresAt;
private Map headers = new HashMap<>();
private Map templateValues = new HashMap<>();
public PublishMessageInfo()
{
}
public PublishMessageInfo( Object message, String subtopic )
{
this.message = message;
this.subtopic = subtopic;
}
public Object getMessage()
{
return message;
}
public PublishMessageInfo setMessage( Object message )
{
this.message = message;
return this;
}
public String getPublisherId()
{
return publisherId;
}
public PublishMessageInfo setPublisherId( String publisherId )
{
this.publisherId = publisherId;
return this;
}
public String getSubtopic()
{
return subtopic;
}
public PublishMessageInfo setSubtopic( String subtopic )
{
this.subtopic = subtopic;
return this;
}
public List getPushSinglecast()
{
return pushSinglecast;
}
public PublishMessageInfo setPushSinglecast( List pushSinglecast )
{
this.pushSinglecast = pushSinglecast;
return this;
}
public String getPushBroadcast()
{
return pushBroadcast;
}
public PublishMessageInfo setPushBroadcast( String pushBroadcast )
{
this.pushBroadcast = pushBroadcast;
return this;
}
public long getPublishAt()
{
return publishAt;
}
public PublishMessageInfo setPublishAt( long publishAt )
{
this.publishAt = publishAt;
return this;
}
public long getRepeatEvery()
{
return repeatEvery;
}
public PublishMessageInfo setRepeatEvery( long repeatEvery )
{
this.repeatEvery = repeatEvery;
return this;
}
public long getRepeatExpiresAt()
{
return repeatExpiresAt;
}
public PublishMessageInfo setRepeatExpiresAt( Long repeatExpiresAt )
{
this.repeatExpiresAt = repeatExpiresAt == null ? 0 : repeatExpiresAt;
return this;
}
public Map getHeaders()
{
return headers;
}
public PublishMessageInfo setHeaders( Map headers )
{
this.headers.clear();
if (headers != null)
this.headers.putAll( headers );
return this;
}
public Map getTemplateValues()
{
return templateValues;
}
public PublishMessageInfo setTemplateValues( Map templateValues )
{
this.templateValues.clear();
if (templateValues != null)
this.templateValues.putAll( templateValues );
return this;
}
public String getPublishPolicy()
{
return publishPolicy;
}
public PublishMessageInfo setPublishPolicy( String publishPolicy )
{
this.publishPolicy = publishPolicy;
return this;
}
public String getQuery()
{
return query;
}
public void setQuery( String query )
{
this.query = query;
}
public String getMessageId()
{
return messageId;
}
void setMessageId( String messageId )
{
this.messageId = messageId;
}
public long getTimestamp()
{
return timestamp;
}
void setTimestamp( long timestamp )
{
this.timestamp = timestamp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy