CloudPlugs REST Library  1.0.0
for Android
Validate Class Reference

Tool class for validating parameters for making remote requests. Every method throws an IllegalArgumentException if the given argument is not valid. This class is for internal usage. More...

Static Public Member Functions

static void oid (String id)
 
static void oids (String[] ids)
 
static void plugIds (String[] idPlugs)
 
static void devIds (String[] idPlugs)
 
static void devId (String idPlug)
 
static void devIdCsv (String idPlugCsv)
 
static void modelId (String idPlug)
 
static void plugId (String idPlug)
 
static void plugIdCsv (String idPlugCsv)
 
static void channelMask (String channel)
 
static void channelName (String channel)
 
static void hwid (String hwid, String name)
 
static void hwid (String hwid)
 
static void pass (String pass)
 
static void body (String body)
 
static void json (String json, String msg, boolean allowNull)
 
static void prop (String prop)
 
static void name (String name)
 
static void status (String status)
 
static void perm (JSONObject perm)
 
static void str (String str, int minLength, String name)
 
static void pos (int num, String name)
 

Static Public Attributes

static final int MIN_PASS_LENGTH = 4
 
static final int MIN_HWID_LENGTH = 1
 

Detailed Description

Tool class for validating parameters for making remote requests. Every method throws an IllegalArgumentException if the given argument is not valid. This class is for internal usage.

Member Function Documentation

◆ body()

static void body ( String  body)
static

◆ channelMask()

static void channelMask ( String  channel)
static

◆ channelName()

static void channelName ( String  channel)
static

◆ devId()

static void devId ( String  idPlug)
static

◆ devIdCsv()

static void devIdCsv ( String  idPlugCsv)
static

◆ devIds()

static void devIds ( String []  idPlugs)
static

◆ hwid() [1/2]

static void hwid ( String  hwid,
String  name 
)
static

◆ hwid() [2/2]

static void hwid ( String  hwid)
static

◆ json()

static void json ( String  json,
String  msg,
boolean  allowNull 
)
static

◆ modelId()

static void modelId ( String  idPlug)
static

◆ name()

static void name ( String  name)
static

◆ oid()

static void oid ( String  id)
static

◆ oids()

static void oids ( String []  ids)
static

◆ pass()

static void pass ( String  pass)
static

◆ perm()

static void perm ( JSONObject  perm)
static

◆ plugId()

static void plugId ( String  idPlug)
static

◆ plugIdCsv()

static void plugIdCsv ( String  idPlugCsv)
static

◆ plugIds()

static void plugIds ( String []  idPlugs)
static

◆ pos()

static void pos ( int  num,
String  name 
)
static

◆ prop()

static void prop ( String  prop)
static

◆ status()

static void status ( String  status)
static

◆ str()

static void str ( String  str,
int  minLength,
String  name 
)
static

Member Data Documentation

◆ MIN_HWID_LENGTH

final int MIN_HWID_LENGTH = 1
static

◆ MIN_PASS_LENGTH

final int MIN_PASS_LENGTH = 4
static