Exemple #1
0
 /// <summary>
 /// To get ZCRMModuleRelation instance by passing ZCRMRecord class instance and related List APIName.
 /// </summary>
 /// <returns>ZCRMModuleRelation class instance.</returns>
 /// <param name="parentRecord">ZCRMRecord class instance</param>
 /// <param name="relatedListAPIName">APIName (String) of the related list.</param>
 public static ZCRMModuleRelation GetInstance(ZCRMRecord parentRecord, string relatedListAPIName)
 {
     return(new ZCRMModuleRelation(parentRecord, relatedListAPIName));
 }
Exemple #2
0
 private ZCRMModuleRelation(ZCRMRecord parentRecord, string relatedListAPIName)
 {
     ParentRecord = parentRecord;
     ApiName      = relatedListAPIName;
 }
Exemple #3
0
 private ZCRMModuleRelation(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     ParentRecord   = parentRecord;
     JunctionRecord = junctionRecord;
 }
Exemple #4
0
 /// <summary>
 /// To convert the record based on potential record  and ZCRMUser class instance.
 /// </summary>
 /// <returns>Dictionary(String,Long).</returns>
 /// <param name="potential">ZCRMRecord class instance</param>
 /// <param name="assignToUser">ZCRMUser class instance</param>
 public Dictionary <string, long> Convert(ZCRMRecord potential, ZCRMUser assignToUser)
 {
     return(EntityAPIHandler.GetInstance(this).ConvertRecord(potential, assignToUser));
 }
 /// <summary>
 /// To get ZCRMInventoryLineItem instance by passing ZCRMRecord class instance.
 /// </summary>
 /// <param name="product">ZCRMRecord class instance.</param>
 public ZCRMInventoryLineItem(ZCRMRecord product)
 {
     Product = product;
 }
Exemple #6
0
 /// <summary>
 /// To convert specified potential record.
 /// </summary>
 /// <returns>Dictionary(String,Long).</returns>
 /// <param name="potential">ZCRMRecord class instance</param>
 public Dictionary <string, long> Convert(ZCRMRecord potential)
 {
     return(Convert(potential, null));
 }
Exemple #7
0
 /// <summary>
 /// To get attachment instance by passing ZCRMRecord instance and attachment Id.
 /// </summary>
 /// <returns>ZCRMAttachment class instance.</returns>
 /// <param name="parentRecord">ZCRMRecord class instance</param>
 /// <param name="attachmentId">Id (Long) of the attachment </param>
 public static ZCRMAttachment GetInstance(ZCRMRecord parentRecord, long attachmentId)
 {
     return(new ZCRMAttachment(parentRecord, attachmentId));
 }
Exemple #8
0
 /// <summary>
 /// To get attachment instance by passing ZCRMRecord instance.
 /// </summary>
 /// <param name="parentRecord">ZCRMRecord class instance.</param>
 public ZCRMAttachment(ZCRMRecord parentRecord)
 {
     ParentRecord = parentRecord;
 }
Exemple #9
0
 private ZCRMAttachment(ZCRMRecord parentRecord, long attachmentId)
 {
     ParentRecord = parentRecord;
     Id           = attachmentId;
 }
Exemple #10
0
 /// <summary>
 /// To get ZCRMModuleRelation instance by passing ZCRMRecord class instance and ZCRMJunctionRecord class instance.
 /// </summary>
 /// <returns>The instance.</returns>
 /// <param name="parentRecord">ZCRMRecord class instance</param>
 /// <param name="junctionRecord">ZCRMJunctionRecord class instance</param>
 public static ZCRMModuleRelation GetInstance(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     return(new ZCRMModuleRelation(parentRecord, junctionRecord));
 }