Bold360 and BoldChat Developer Center

BCFormFieldOption.h

1 //
2 // Copyright (c) 2014 LogMeIn Inc. All rights reserved.
3 //
4 
5 #import <Foundation/Foundation.h>
6 
11 @interface BCFormFieldOption : NSObject
12 
17 @property(nonatomic, copy, readonly)NSString *name;
18 
23 @property(nonatomic, copy, readonly)NSString *value;
24 
29 @property(nonatomic, copy, readonly)NSString *nameBrandingKey;
30 
35 @property(nonatomic, copy, readonly)NSString *availableLabel;
36 
41 @property(nonatomic, readonly)BOOL isDefaultValue;
42 
47 @property(nonatomic, readonly)BOOL isAvailable;
48 
53 @property(nonatomic, readonly)BOOL isAvailiblitySet;
54 
64 + (id)formOptionWithName:(NSString *)name value:(NSString *)value nameBrandingKey:(NSString *)nameBrandingKey isDefaultValue:(BOOL)isDefaultValue;
65 
77 + (id)formOptionWithName:(NSString *)name value:(NSString *)value nameBrandingKey:(NSString *)nameBrandingKey isDefaultValue:(BOOL)isDefaultValue isAvailable:(BOOL)isAvailable availableLabel:(NSString *)availableLabel;
78 
88 - (id)initWithName:(NSString *)name value:(NSString *)value nameBrandingKey:(NSString *)nameBrandingKey isDefaultValue:(BOOL)isDefaultValue;
89 
101 - (id)initWithName:(NSString *)name value:(NSString *)value nameBrandingKey:(NSString *)nameBrandingKey isDefaultValue:(BOOL)isDefaultValue isAvailable:(BOOL)isAvailable availableLabel:(NSString *)availableLabel;
102 @end
BOOL isAvailiblitySet
Determines if isAvailable and availableLabel values are set.
Definition: BCFormFieldOption.h:53
BOOL isDefaultValue
YES if the value is the default.
Definition: BCFormFieldOption.h:41
Container class for storing information about an option for BCFormFieldTypeSelect or BCFormFieldTypeR...
Definition: BCFormFieldOption.h:11
NSString * availableLabel
For deparments selection fields that have online/offlinet status, this will return the status label t...
Definition: BCFormFieldOption.h:35
NSString * nameBrandingKey
The branding key for name localization if exists for the option.
Definition: BCFormFieldOption.h:29
NSString * value
The value of the field, this is not appropriate to show to a user.
Definition: BCFormFieldOption.h:23
BOOL isAvailable
YES if the value is the default one for the BCFormFieldTypeSelect or BCFormFieldTypeRadio field...
Definition: BCFormFieldOption.h:47
NSString * name
The name of the field, this is appropriate to show to a user.
Definition: BCFormFieldOption.h:17