Click or drag to resize

WSUserScheduleDetailDeleteUserScheduleDetail Method

Deletes a list of user schedules by its IDList and returns a list of DeleteResult status structures

Namespace: AppOne.Services.V2.Methods
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public DeleteUserScheduleDetailOut DeleteUserScheduleDetail(
	DeleteUserScheduleDetailIn input
)

Parameters

input  DeleteUserScheduleDetailIn
A new DeleteUserScheduleDetailIn object

Return Value

DeleteUserScheduleDetailOut
A list of DeleteResult status structures
Remarks
Deletes a list of user schedules by its IDList and returns a list of DeleteResult status structures.
The structures give a status for each of the IDList passed in.

Note  Note
A schedule detail is a child of a schedule. The schedule must first exist before a schedule detail can exist.
Example
JSON Request
{
    "AuthToken":"QWcvOVRCZ0NMNmhQUU5Odnk5ZlQ1QT09LUJpN3lkL1FWbDFjMm1mOFN3YWtKVnlGMW54UmVocmUxandzQw==",
    "IDList":[4375,4376]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.2060906",
      "RequestTime": "/Date(1461793329953+0000)/",
      "ResponseTime": "/Date(1461793330159+0000)/",
      "Results": 2
   },
   "Results":    [
            {
         "ID": 4375,
         "IsDeleted": true,
         "Message": "Schedule Detail successfully deleted",
         "Status": 1
      },
            {
         "ID": 4376,
         "IsDeleted": true,
         "Message": "Schedule Detail successfully deleted",
         "Status": 1
      }
   ]
}
SOAP: C# WCF Sample
private void DeleteScheduleDetails(List<int> ids)
{
    try
    {
        var actionTestLogic = new Action<SoapServiceV2.ServiceRouterClient>((client) =>
        {
            // ==================================
            //Delete Schedule
            bool pass = true;
            SoapServiceV2.DeleteUserScheduleDetailRequest request1 = new SoapServiceV2.DeleteUserScheduleDetailRequest();
            request1.input = new SoapServiceV2.DeleteUserScheduleDetailIn
            {
                AuthToken = AuthToken,
                IDList = ids
            };
            SoapServiceV2.DeleteUserScheduleDetailResponse response1 = client.DeleteUserScheduleDetail(request1);
            pass = (response1.DeleteUserScheduleDetailResult.Results != null && response1.DeleteUserScheduleDetailResult.Results.Count > 0) ? true : false;
            Assert.IsTrue(pass);

        });

        RunServiceClient(actionTestLogic);
    }
    catch (FaultException<SoapServiceV2.ServiceException> fe)
    {
        Assert.Fail(fe.Detail.Message);
    }
}
See Also