Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSN-10 Create DTOs #3

Merged
merged 5 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
Empty file.
11 changes: 11 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/AddressDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace ReasnAPI.Models.DTO {
public class AddressDto {
public string Country { get; set; } = null!;
public string City { get; set; } = null!;
public string Street { get; set; } = null!;
public string? State { get; set; }
mkoper02 marked this conversation as resolved.
Show resolved Hide resolved
public string? ZipCode { get; set; }
}
}
10 changes: 10 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/CommentDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;

namespace ReasnAPI.Models.DTO {
public class CommentDto {
public int EventId { get; set; }
public string Content { get; set; } = null!;
public DateTime Created { get; set; }
wzarek marked this conversation as resolved.
Show resolved Hide resolved
public int UserId { get; set; }
}
}
14 changes: 14 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/EventDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace ReasnAPI.Models.DTO {
public class EventDto {
mkoper02 marked this conversation as resolved.
Show resolved Hide resolved
public string Name { get; set; } = null!;
public int AddressId { get; set; }
wzarek marked this conversation as resolved.
Show resolved Hide resolved
public string Description { get; set; } = null!;
public int OrganizerId { get; set; }
public DateTime StartAt { get; set; }
public DateTime EndAt { get; set; }
wzarek marked this conversation as resolved.
Show resolved Hide resolved
public string? Slug { get; set; }
public int StatusId { get; set; }
}
}
9 changes: 9 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/ImageDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace ReasnAPI.Models.DTO {
public class ImageDto {
public byte[] ImageData { get; set; } = null!;
public int ObjectId { get; set; }
public int ObjectTypeId { get; set; }
}
}
8 changes: 8 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/IntrestDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ReasnAPI.Models.DTO {
public class IntrestDto {
public string Name { get; set; } = null!;
public int Level { get; set; }
}
}
8 changes: 8 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/ParameterDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ReasnAPI.Models.DTO {
public class ParameterDto {
public string Key { get; set; } = null!;
public string Value { get; set; } = null!;
}
}
9 changes: 9 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/ParticipantDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace ReasnAPI.Models.DTO {
public class ParticipantDto {
public int EventId { get; set; }
public int UserId { get; set; }
public int StatudId { get; set; }
wzarek marked this conversation as resolved.
Show resolved Hide resolved
}
}
8 changes: 8 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/StatusDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ReasnAPI.Models.DTO {
public class StatusDto {
mkoper02 marked this conversation as resolved.
Show resolved Hide resolved
public string Name { get; set; } = null!;
public int ObjectTypeId { get; set; }
}
}
13 changes: 13 additions & 0 deletions Server/ReasnAPI/ReasnAPI/Models/DTO/UserDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace ReasnAPI.Models.DTO {
public class UserDto {
public string Username { get; set; } = null!;
public string Name { get; set; } = null!;
public string Surname { get; set; } = null!;
public string Email { get; set; } = null!;
public string? Phone { get; set; }
public int RoleId { get; set; }
public AddressDto? Address { get; set; }
wzarek marked this conversation as resolved.
Show resolved Hide resolved
}
}