Knocks/BackEnd/Knoks.Core/Entities/Args/KnokFeedbackArgs.cs

41 lines
1.0 KiB
C#

using Knoks.Framework.DataAccess;
using Knoks.Framework.Extentions;
using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations;
namespace Knoks.Core.Entities.Args
{
public class OngoingKnokFeedbackArgs : IApiArgs
{
[NotZero]
public long KnokId { get; set; }
[JsonIgnore, AutoInitField]
public string HttpRequestInfo { get; set; }
[JsonIgnore, AutoInitField]
public long UserId { get; set; }
[JsonRequired]
public string Comment { get; set; }
public int? Clear { get; set; }
public int? Educational { get; set; }
public int? Comprehensive { get; set; }
}
public class EndedKnokFeedbackArgs : IApiArgs
{
[NotZero]
public long KnokId { get; set; }
[JsonIgnore, AutoInitField]
public string HttpRequestInfo { get; set; }
[JsonIgnore, AutoInitField]
public long UserId { get; set; }
public string Comment { get; set; }
public int? KnokBenefit { get; set; }
}
}