Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Client.Models/Models/Entities/TaskModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
public class TaskModel
{
public int UserTaskId { get; set; }
public string TaskId { get; set; }

Check warning on line 6 in Client.Models/Models/Entities/TaskModel.cs

View workflow job for this annotation

GitHub Actions / tests-and-format

Non-nullable property 'TaskId' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Name { get; set; }

Check warning on line 7 in Client.Models/Models/Entities/TaskModel.cs

View workflow job for this annotation

GitHub Actions / tests-and-format

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public DateTime StartTime { get; set; }
public int Reward { get; set; }
public TaskModelExtendedInfo ExtendedInfo { get; set; }

Check warning on line 10 in Client.Models/Models/Entities/TaskModel.cs

View workflow job for this annotation

GitHub Actions / tests-and-format

Non-nullable property 'ExtendedInfo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.


private const double Coefficient = 0.2;
private const double Coefficient = 0.5;
public int Swap => (int)(Reward * Coefficient);
}
Loading