Skip to content

Instantly share code, notes, and snippets.

@ajiehatajie
Created September 9, 2019 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajiehatajie/cd3859aafd33ef19fc8a8aa91b5f8ded to your computer and use it in GitHub Desktop.
Save ajiehatajie/cd3859aafd33ef19fc8a8aa91b5f8ded to your computer and use it in GitHub Desktop.
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleReceiving.Repository.Object
{
public class SuratJalanRequestDto
{
public string taskName { get; set; } = "GR Unit Batching";
public Filters filters { get; set; }
public Sort sort { get; set; }
public int offset { get; set; } = 0;
public int limit { get; set; } = 100;
}
public class DealerID
{
public string value { get; set; } = "100002";
[JsonProperty(PropertyName = "operator")]
public string operators { get; set; } = "EQUAL";
}
public class TaskType
{
public string value { get; set; } = "GR_PO_MD";
[JsonProperty(PropertyName = "operator")]
public string operatorFilter { get; set; } = "EQUAL";
}
public class Filters
{
public DealerID dealerID { get; set; }
public TaskType TaskType { get; set; }
}
public class Sort
{
public string sortOrder { get; set; } = "DESC";
public string sortBy { get; set; } = "TaskSJDate";
public string sortType { get; set; } = "DATE";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment