All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.messaging.PublishMessageInfo Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package com.backendless.messaging;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PublishMessageInfo
{
  private Object message;
  private String publisherId;
  private String subtopic;
  private List pushSinglecast;
  private String pushBroadcast;
  private String pushPolicy;
  private long publishAt;
  private long repeatEvery;
  private long repeatExpiresAt;
  private Map headers = new HashMap();

  public PublishMessageInfo()
  {
  }

  public PublishMessageInfo( Object message, String subtopic )
  {
    this.message = message;
    this.subtopic = subtopic;
  }

  public Object getMessage()
  {
    return message;
  }

  public void setMessage( Object message )
  {
    this.message = message;
  }

  public String getPublisherId()
  {
    return publisherId;
  }

  public void setPublisherId( String publisherId )
  {
    this.publisherId = publisherId;
  }

  public String getSubtopic()
  {
    return subtopic;
  }

  public void setSubtopic( String subtopic )
  {
    this.subtopic = subtopic;
  }

  public String getPushBroadcast()
  {
    return pushBroadcast;
  }

  public void setPushBroadcast( String pushBroadcast )
  {
    this.pushBroadcast = pushBroadcast;
  }

  public Map getHeaders()
  {
    return headers;
  }

  public void setHeaders( Map headers )
  {
    this.headers = headers;
  }

  public long getPublishAt()
  {
    return publishAt;
  }

  public void setPublishAt( long publishAt )
  {
    this.publishAt = publishAt;
  }

  public long getRepeatEvery()
  {
    return repeatEvery;
  }

  public void setRepeatEvery( long repeatEvery )
  {
    this.repeatEvery = repeatEvery;
  }

  public long getRepeatExpiresAt()
  {
    return repeatExpiresAt;
  }

  public void setRepeatExpiresAt( Long repeatExpiresAt )
  {
    this.repeatExpiresAt = repeatExpiresAt == null ? 0 : repeatExpiresAt;
  }

  public List getPushSinglecast()
  {
    return pushSinglecast;
  }

  public void setPushSinglecast( List pushSinglecast )
  {
    this.pushSinglecast = pushSinglecast;
  }

  public String getPushPolicy()
  {
    return pushPolicy;
  }

  public void setPushPolicy( String pushPolicy )
  {
    this.pushPolicy = pushPolicy;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy