public static List <AppComment> ConvertServiceAddressesToAppComments(List <ApplicationService.AppNotes> comments) { List <AppComment> appcomments = new List <AppComment>(); foreach (ApplicationService.AppNotes com in comments) { AppComment comment = new AppComment(); comment.id = com.id; comment.subjectid = com.subjectid; comment.subjecttype = com.subjecttype; comment.parentid = com.parentid; comment.type = com.type; comment.objecttype = com.objecttype; comment.status = com.status; comment.des = com.des; comment.ownerid = com.ownerid; comment.appid = com.appid; comment.networkid = com.networkid; comment.modifiedby = com.modifiedby; comment.modifieddate = com.modifieddate; appcomments.Add(comment); } return(appcomments); }
public static AppComment ConvertServiceAddressToAppComment(ApplicationService.AppNotes serviceComments) { AppComment comment = new AppComment(); comment.id = serviceComments.id; comment.subjectid = serviceComments.subjectid; comment.subjecttype = serviceComments.subjecttype; comment.parentid = serviceComments.parentid; comment.type = serviceComments.type; comment.objecttype = serviceComments.objecttype; comment.status = serviceComments.status; comment.des = serviceComments.des; comment.ownerid = serviceComments.ownerid; comment.appid = serviceComments.appid; comment.networkid = serviceComments.networkid; comment.modifiedby = serviceComments.modifiedby; comment.modifieddate = serviceComments.modifieddate; return(comment); }
public static List<AppComment> ConvertServiceAddressesToAppComments(List<ApplicationService.AppNotes> comments) { List<AppComment> appcomments = new List<AppComment>(); foreach (ApplicationService.AppNotes com in comments) { AppComment comment = new AppComment(); comment.id = com.id; comment.subjectid = com.subjectid; comment.subjecttype = com.subjecttype; comment.parentid = com.parentid; comment.type = com.type; comment.objecttype = com.objecttype; comment.status = com.status; comment.des = com.des; comment.ownerid = com.ownerid; comment.appid = com.appid; comment.networkid = com.networkid; comment.modifiedby = com.modifiedby; comment.modifieddate = com.modifieddate; appcomments.Add(comment); } return appcomments; }
public static AppComment ConvertServiceAddressToAppComment(ApplicationService.AppNotes serviceComments) { AppComment comment = new AppComment(); comment.id = serviceComments.id; comment.subjectid = serviceComments.subjectid; comment.subjecttype = serviceComments.subjecttype; comment.parentid = serviceComments.parentid; comment.type = serviceComments.type; comment.objecttype = serviceComments.objecttype; comment.status = serviceComments.status; comment.des = serviceComments.des; comment.ownerid = serviceComments.ownerid; comment.appid = serviceComments.appid; comment.networkid = serviceComments.networkid; comment.modifiedby = serviceComments.modifiedby; comment.modifieddate = serviceComments.modifieddate; return comment; }
public List <AppComment> GetNotes(string subjectid, string objecttype) { ApplicationService.AppNotes[] comments = appclient.GetNotes(subjectid, objecttype); return(AppComment.ConvertServiceAddressesToAppComments(comments.ToList())); }