VivochaDataCollectionField

@interface VivochaDataCollectionField : NSObject

Represents a field in the data collection

  • @property (nonatomic, retain) NSString *name;

    The field name

  • @property (nonatomic, retain) NSString *desc;

    The field description

  • @property (nonatomic) VivochaDataCollectionFieldType type;

    The field type

  • @property (nonatomic, retain) NSString *value;

    The field value

  • @property (nonatomic) BOOL visible;

    Defines if the field will be visible to the agent

  • @property (nonatomic) BOOL checked;

    If the type is checkbox, defines if it should be represented as checked

  • @property (nonatomic) BOOL secure;

    If the secure value is set to false, the server will not follow the encryption rules set on your Vivocha account but will leave the field unencrypted.

  • + (VivochaDataCollectionField *)fieldWithName:(NSString *)name
                                          andType:
                                              (VivochaDataCollectionFieldType)type
                                         andValue:(NSString *)value
                                   andDescription:(NSString *)desc
                                    andIsVisibile:(BOOL)visibile
                                     andIsChecked:(BOOL)checked;

    Factory method for a VivochaDataCollectionField object.

    Parameters

    name

    the field name

    type

    the field type

    value

    the field value

    desc

    the field description

    visibile

    the field visibility

    checked

    If the field type is a CheckBox, this parameter sets if the field is checked or not.

    Return Value

    the field object.

  • - (id)initWithName:(NSString *)name
               andType:(VivochaDataCollectionFieldType)type
              andValue:(NSString *)value
        andDescription:(NSString *)desc
         andIsVisibile:(BOOL)visibile
          andIsChecked:(BOOL)checked;

    Initializes a VivochaDataCollectionField object.

    Parameters

    name

    the field name

    type

    the field type

    value

    the field value

    desc

    the field description

    visibile

    the field visibility

    checked

    If the field type is a CheckBox, this parameter sets if the field is checked or not.

    Return Value

    the initializes field object.