Class Glance
java.lang.Object
de.svenkubiak.jpushover.apis.Glance
- All Implemented Interfaces:
API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpush()Sends a glance to pushoverSends a glance to pushover asynchronouslywithCount(int count) Shown on smaller screens; useful for simple countswithDevice(String device) Your user's device name to send the message directly to that device, rather than all of the user's devices (optional)withPercent(int percent) Shown on some screens as a progress bar/circleSets the host and port for a proxy connection if neededwithSubtext(String subtext) A second line of dataThe main line of data, used on most screensA description of the data being shown, such as "Widgets Sold"Your application's API token (required)The user/group key (not e-mail address) of your user (or you), viewable when logged into the @see pushover dashboard (required)
-
Constructor Details
-
Glance
public Glance()
-
-
Method Details
-
withToken
-
withUser
The user/group key (not e-mail address) of your user (or you), viewable when logged into the @see pushover dashboard (required)- Parameters:
user- The username- Returns:
- Glance instance
-
withDevice
-
withTitle
-
withText
-
withSubtext
-
withCount
Shown on smaller screens; useful for simple counts- Parameters:
count- the count to use- Returns:
- Glance instance
-
withPercent
Shown on some screens as a progress bar/circle- Parameters:
percent- the percent to use- Returns:
- GLance instance
-
withProxy
-
push
Sends a glance to pushover- Specified by:
pushin interfaceAPI- Returns:
- PushoverResponse instance
- Throws:
JPushoverException- on failure
-
pushAsync
Sends a glance to pushover asynchronously- Returns:
- PushoverResponse instance
-
getValue
-