| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.Web.Script.Serialization; |
| using System.Web.Script.Serialization; |
| using Newtonsoft.Json; |
| using Newtonsoft.Json; |
| using ZionRobot.Models.ZFlow; |
| using ZionRobot.Models.ZFlow; |
| using ZionRobot.Persistence; |
| using ZionRobot.Persistence; |
| using ZionVault.WebService; |
| using ZionVault.WebService; |
| |
| |
| namespace ZionRobot.WebService |
| namespace ZionRobot.WebService |
| { |
| { |
| // Token: 0x0200001D RID: 29 |
| // Token: 0x0200001C RID: 28 |
| public class Activity |
| public class Activity |
| { |
| { |
| // Token: 0x060000A0 RID: 160 RVA: 0x00005D64 File Offset: 0x00003F64 |
| // Token: 0x0600009B RID: 155 RVA: 0x00005998 File Offset: 0x00003B98 |
| internal string ActivityCreate(Activity activity) |
| internal string ActivityCreate(Activity activity) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityCreate, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityCreate, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A1 RID: 161 RVA: 0x00005DA4 File Offset: 0x00003FA4 |
| // Token: 0x0600009C RID: 156 RVA: 0x000059D8 File Offset: 0x00003BD8 |
| internal string UpdateActivityUrl(Activity activity) |
| internal string UpdateActivityUrl(Activity activity) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityUrl, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityUrl, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A2 RID: 162 RVA: 0x00005DE4 File Offset: 0x00003FE4 |
| // Token: 0x0600009D RID: 157 RVA: 0x00005A18 File Offset: 0x00003C18 |
| internal string UpdateActivityCaseUrl(Activity activity) |
| internal string UpdateActivityCaseUrl(Activity activity) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityCaseUrl, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityCaseUrl, WSProperties.Token, null, new JavaScriptSerializer().Serialize(activity), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A3 RID: 163 RVA: 0x00005E24 File Offset: 0x00004024 |
| // Token: 0x0600009E RID: 158 RVA: 0x00005A58 File Offset: 0x00003C58 |
| internal string UpdateActivityFieldValue(Activity activity, string name, string value) |
| internal string UpdateActivityFieldValue(Activity activity, string name, string value) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityFieldValue, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivityFieldValue, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| EntityId = activity.EntityId, |
| EntityId = activity.EntityId, |
| ActivityId = activity.Id, |
| ActivityId = activity.Id, |
| ElementName = name, |
| ElementName = name, |
| Value = value |
| Value = value |
| }), null); |
| }), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A4 RID: 164 RVA: 0x00005E74 File Offset: 0x00004074 |
| // Token: 0x0600009F RID: 159 RVA: 0x00005AA8 File Offset: 0x00003CA8 |
| internal string UpdateActivitySync(Activity activity, int syncStatus) |
| internal string UpdateActivitySync(Activity activity, int syncStatus) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivitySync, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateActivitySync, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| EntityId = activity.EntityId, |
| EntityId = activity.EntityId, |
| ActivityId = activity.Id, |
| ActivityId = activity.Id, |
| SyncId = activity.SyncId, |
| SyncId = activity.SyncId, |
| SyncStatus = syncStatus |
| SyncStatus = syncStatus |
| }), null); |
| }), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A5 RID: 165 RVA: 0x00005EC8 File Offset: 0x000040C8 |
| // Token: 0x060000A0 RID: 160 RVA: 0x00005AFC File Offset: 0x00003CFC |
| internal string UpdateAttachmentLink(Attachment attachemnt) |
| internal string UpdateAttachmentLink(Attachment attachemnt) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateAttachmentLink, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateAttachmentLink, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| EntityId = attachemnt.EntityId, |
| EntityId = attachemnt.EntityId, |
| ActivityId = attachemnt.ActivityId, |
| ActivityId = attachemnt.ActivityId, |
| Link = attachemnt.Link.AbsoluteUri |
| Link = attachemnt.Link.AbsoluteUri |
| }), null); |
| }), null); |
| } |
| } |
| |
| |
| // Token: 0x060000A6 RID: 166 RVA: 0x00005F20 File Offset: 0x00004120 |
| // Token: 0x060000A1 RID: 161 RVA: 0x00005B54 File Offset: 0x00003D54 |
| internal List<Activity> ActivityToSync() |
| internal List<Activity> ActivityToSync() |
| { |
| { |
. | string result = new Client(WSProperties.UrlApi)._request("GET", "exporter/3/test", WSProperties.Token, null, string.Empty, null); |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.ActivitiesToSync, WSProperties.Token, null, string.Empty, null); |
| return JsonConvert.DeserializeObject<List<Activity>>(result); |
| return JsonConvert.DeserializeObject<List<Activity>>(result); |
| } |
| } |
| |
| |
| // Token: 0x060000A7 RID: 167 RVA: 0x00005F60 File Offset: 0x00004160 |
| // Token: 0x060000A2 RID: 162 RVA: 0x00005B94 File Offset: 0x00003D94 |
| internal List<Activity> ActivitiesToCreateDataJuri() |
| internal List<Activity> ActivitiesToCreateDataJuri() |
| { |
| { |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.ActivitiesToCreateDataJuri, WSProperties.Token, null, string.Empty, null); |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.ActivitiesToCreateDataJuri, WSProperties.Token, null, string.Empty, null); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| } |
| } |
| |
| |
| // Token: 0x060000A8 RID: 168 RVA: 0x00005FA8 File Offset: 0x000041A8 |
| // Token: 0x060000A3 RID: 163 RVA: 0x00005BDC File Offset: 0x00003DDC |
| internal List<Activity> ActivityToCanceling() |
| internal List<Activity> ActivityToCanceling() |
| { |
| { |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.ActivitiesToCanceling, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.ActivitiesToCanceling, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| name = "Wu shang hao" |
| name = "Wu shang hao" |
| }), null); |
| }), null); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| } |
| } |
| |
| |
| // Token: 0x060000A9 RID: 169 RVA: 0x00006000 File Offset: 0x00004200 |
| // Token: 0x060000A4 RID: 164 RVA: 0x00005C34 File Offset: 0x00003E34 |
| internal List<Activity> ActivityCanceled(Activity activity) |
| internal List<Activity> ActivityCanceled(Activity activity) |
| { |
| { |
| string result = new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityCanceled, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| string result = new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityCanceled, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| entity_id = activity.EntityId, |
| entity_id = activity.EntityId, |
| id = activity.Id, |
| id = activity.Id, |
| activity_type_id = activity.TypeId |
| activity_type_id = activity.TypeId |
| }), null); |
| }), null); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer(); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| return jsonSerialiser.Deserialize<List<Activity>>(result); |
| } |
| } |
| |
| |
| // Token: 0x060000AA RID: 170 RVA: 0x00006064 File Offset: 0x00004264 |
| // Token: 0x060000A5 RID: 165 RVA: 0x00005C98 File Offset: 0x00003E98 |
| internal string ActivityDone(Activity activity) |
| internal string ActivityDone(Activity activity) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityDone, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.ActivityDone, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
| entity_id = activity.EntityId, |
| entity_id = activity.EntityId, |
| id = activity.Id, |
| id = activity.Id, |
| activity_type_id = activity.TypeId |
| activity_type_id = activity.TypeId |
| }), null); |
| }), null); |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |