BrightSide Workbench Full Report + Source Code
org.turro.push.PushMessage Class Reference

Public Member Functions

PushMessage message (String message)
 
PushMessage click (String target)
 
PushMessage tag (String tag)
 
PushMessage primaryKey (String primaryKey)
 
PushMessage icon (String icon)
 
PushMessage badge (String badge)
 
String json ()
 

Static Public Member Functions

static PushMessage title (String title)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file PushMessage.java.

Member Function Documentation

◆ badge()

PushMessage org.turro.push.PushMessage.badge ( String  badge)

Definition at line 63 of file PushMessage.java.

63  {
64  this.badge = badge;
65  return this;
66  }

◆ click()

PushMessage org.turro.push.PushMessage.click ( String  target)

Definition at line 43 of file PushMessage.java.

43  {
44  json.write("clickTarget", target);
45  return this;
46  }
Here is the caller graph for this function:

◆ icon()

PushMessage org.turro.push.PushMessage.icon ( String  icon)

Definition at line 58 of file PushMessage.java.

58  {
59  this.icon = icon;
60  return this;
61  }

◆ json()

String org.turro.push.PushMessage.json ( )

Definition at line 68 of file PushMessage.java.

68  {
69  String imageFolder = ElephantContext.getRootWebPath() + "/_internal/repository/push/";
70  json.write("tag", tag)
71  .write("primaryKey", primaryKey)
72  .write("icon", imageFolder + icon)
73  .write("badge", imageFolder + badge)
74  .writeEnd()
75  .close();
76  return writer.toString();
77  }
Here is the call graph for this function:

◆ message()

PushMessage org.turro.push.PushMessage.message ( String  message)

Definition at line 38 of file PushMessage.java.

38  {
39  json.write("message", Strings.truncate(message, 240));
40  return this;
41  }
PushMessage message(String message)
Here is the caller graph for this function:

◆ primaryKey()

PushMessage org.turro.push.PushMessage.primaryKey ( String  primaryKey)

Definition at line 53 of file PushMessage.java.

53  {
54  this.primaryKey = primaryKey;
55  return this;
56  }

◆ tag()

PushMessage org.turro.push.PushMessage.tag ( String  tag)

Definition at line 48 of file PushMessage.java.

48  {
49  this.tag = tag;
50  return this;
51  }

◆ title()

static PushMessage org.turro.push.PushMessage.title ( String  title)
static

Definition at line 79 of file PushMessage.java.

79  {
80  return new PushMessage(title);
81  }
static PushMessage title(String title)
Here is the caller graph for this function:

The documentation for this class was generated from the following file: