Ejemplo n.º 1
0
 /// <summary>
 /// Used to create the <see cref="IOptionObject2"/> for return to myAvatar using provide Error Code and Error Message.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="errorCode"></param>
 /// <param name="errorMessage"></param>
 /// <returns></returns>
 public static IOptionObject2 GetReturnOptionObject(IOptionObject2 optionObject, double errorCode, string errorMessage)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(GetReturnOptionObject(optionObject.ToOptionObject2015(), errorCode, errorMessage).ToOptionObject2());
 }
 /// <summary>
 /// Returns the FieldValue of a specified <see cref="IFieldObject"/> in an <see cref="IOptionObject2"/> by FormId, RowId, and FieldNumber.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formId"></param>
 /// <param name="rowId"></param>
 /// <param name="fieldNumber"></param>
 /// <returns></returns>
 public static string GetFieldValue(IOptionObject2 optionObject, string formId, string rowId, string fieldNumber)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(GetFieldValue(optionObject.ToOptionObject2015(), formId, rowId, fieldNumber));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets <see cref="FieldObject"/> in an <see cref="IOptionObject2"/> according to specified FieldAction.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="fieldAction"></param>
 /// <param name="fieldNumbers"></param>
 /// <returns></returns>
 public static IOptionObject2 SetFieldObjects(IOptionObject2 optionObject, string fieldAction, List <string> fieldNumbers)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     }
     return(SetFieldObjects(optionObject.ToOptionObject2015(), fieldAction, fieldNumbers).ToOptionObject2());
 }
 /// <summary>
 /// Returns whether a <see cref="IFormObject"/> in the <see cref="IOptionObject2"/> is Multiple Iteration by specified FormId.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formId"></param>
 /// <returns></returns>
 public static bool GetMultipleIterationStatus(IOptionObject2 optionObject, string formId)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(GetMultipleIterationStatus(optionObject.ToOptionObject2015(), formId));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets all <see cref="IFieldObject"/> in the <see cref="IOptionObject2"/> to disabled, except for the FieldNumbers specified in List.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="excludedFields"></param>
 /// <returns></returns>
 public static IOptionObject2 DisableAllFieldObjects(IOptionObject2 optionObject, List <string> excludedFields)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(DisableAllFieldObjects(optionObject.ToOptionObject2015(), excludedFields).ToOptionObject2());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a <see cref="IFormObject"/> with specified FormId and adds to an <see cref="IOptionObject2"/> using provided FormId and indicating whether it is a multiple iteration table.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formId"></param>
 /// <param name="multipleIteration"></param>
 /// <returns></returns>
 public static IOptionObject2 AddFormObject(IOptionObject2 optionObject, string formId, bool multipleIteration)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(AddFormObject(optionObject.ToOptionObject2015(), formId, multipleIteration).ToOptionObject2());
 }
 /// <summary>
 /// Returns the ParentRowId of a <see cref="IFormObject"/> in the <see cref="IOptionObject2"/> by FormId.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formId"></param>
 /// <returns></returns>
 public static string GetParentRowId(IOptionObject2 optionObject, string formId)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     return(GetParentRowId(optionObject.ToOptionObject2015(), formId));
 }
 /// <summary>
 /// Returns whether the <see cref="IFieldObject"/> in the <see cref="IOptionObject2"/> is present by FieldNumber.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="fieldNumber"></param>
 /// <returns></returns>
 public static bool IsFieldPresent(IOptionObject2 optionObject, string fieldNumber)
 {
     if (optionObject == null)
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     if (fieldNumber == null || fieldNumber == "")
         throw new ArgumentNullException("Parameter cannot be null or blank.", "fieldNumber");
     return IsFieldPresent(optionObject.ToOptionObject2015(), fieldNumber);
 }
 /// <summary>
 /// Returns whether the <see cref="IFieldObject"/> in the <see cref="IOptionObject2"/> is required by FieldNumber.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="fieldNumber"></param>
 /// <returns></returns>
 public static bool IsFieldRequired(IOptionObject2 optionObject, string fieldNumber)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     }
     if (fieldNumber == null || fieldNumber == "")
     {
         throw new ArgumentNullException("Parameter cannot be null or blank.", "fieldNumber");
     }
     return(IsFieldRequired(optionObject.ToOptionObject2015(), fieldNumber));
 }
 /// <summary>
 /// Sets the FieldValue of a <see cref="FieldObject"/> in a <see cref="IOptionObject2"/> by FieldNumber.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="fieldNumber"></param>
 /// <param name="fieldValue"></param>
 /// <returns></returns>
 public static IOptionObject2 SetFieldValue(IOptionObject2 optionObject, string fieldNumber, string fieldValue)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     }
     if (fieldNumber == null || fieldNumber == "")
     {
         throw new ArgumentNullException("Parameter cannot be null or blank.", "fieldNumber");
     }
     return(SetFieldValue(optionObject.ToOptionObject2015(), fieldNumber, fieldValue).ToOptionObject2());;
 }
 /// <summary>
 /// Returns whether the <see cref="IRowObject"/> in an <see cref="IOptionObject2"/> is marked for deletion by RowId.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="rowId"></param>
 /// <returns></returns>
 public static bool IsRowMarkedForDeletion(IOptionObject2 optionObject, string rowId)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     if (rowId == null || rowId == "")
     {
         throw new ArgumentNullException("Parameter cannot be null or blank.", "rowId");
     }
     return(IsRowMarkedForDeletion(optionObject.ToOptionObject2015(), rowId));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Adds a <see cref="IFormObject"/> to an <see cref="IOptionObject2"/>.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formObject"></param>
 /// <returns></returns>
 public static IOptionObject2 AddFormObject(IOptionObject2 optionObject, IFormObject formObject)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     if (formObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "formObject");
     }
     return(AddFormObject(optionObject.ToOptionObject2015(), formObject).ToOptionObject2());
 }
 /// <summary>
 /// Flags a <see cref="RowObject"/> for deletion in specified <see cref="IOptionObject2"/> by RowId.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="rowId"></param>
 /// <returns></returns>
 public static IOptionObject2 DeleteRowObject(IOptionObject2 optionObject, string rowId)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     }
     if (rowId == null || rowId == "")
     {
         throw new ArgumentNullException("Parameter cannot be null or blank.", "rowId");
     }
     return(DeleteRowObject(optionObject.ToOptionObject2015(), rowId).ToOptionObject2());
 }
 /// <summary>
 /// Flags a <see cref="IRowObject"/> for deletion in specified <see cref="IOptionObject2"/>.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="rowObject"></param>
 /// <returns></returns>
 public static IOptionObject2 DeleteRowObject(IOptionObject2 optionObject, IRowObject rowObject)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "optionObject");
     }
     if (rowObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null.", "rowObject");
     }
     return(DeleteRowObject(optionObject.ToOptionObject2015(), rowObject).ToOptionObject2());
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Returns whether a <see cref="FormObject"/> exists in an <see cref="OptionObject2"/> by <see cref="FormObject.FormId"/>.
 /// </summary>
 /// <param name="optionObject"></param>
 /// <param name="formId"></param>
 /// <returns></returns>
 public static bool IsFormPresent(IOptionObject2 optionObject, string formId)
 {
     if (optionObject == null)
     {
         throw new ArgumentNullException("Parameter cannot be null", "optionObject");
     }
     if (formId == null || formId == "")
     {
         throw new ArgumentNullException("Parameter cannot be null or blank.", "formId");
     }
     return(IsFormPresent(optionObject.ToOptionObject2015(), formId));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Adds a <see cref="RowObject"/> to a specified <see cref="IFormObject"/> within provided <see cref="IOptionObject2"/>.
 /// </summary>
 /// <param name="optionObject2"></param>
 /// <param name="formId"></param>
 /// <param name="rowObject"></param>
 /// <returns></returns>
 public static IOptionObject2 AddRowObject(IOptionObject2 optionObject2, string formId, IRowObject rowObject)
 {
     if (optionObject2 == null)
     {
         throw new System.ArgumentNullException("Parameter cannot be null.", "optionObject2");
     }
     if (formId == null || formId == "")
     {
         throw new System.ArgumentNullException("Parameter cannot be null or blank.", "formId");
     }
     if (rowObject == null)
     {
         throw new System.ArgumentNullException("Parameter cannot be null.", "rowObject");
     }
     return(AddRowObject(optionObject2.ToOptionObject2015(), formId, rowObject).ToOptionObject2());
 }