Skip to content

Commit

Permalink
ServiceObjectBase
Browse files Browse the repository at this point in the history
  • Loading branch information
o.nadymov committed Mar 5, 2024
1 parent 6768270 commit b36d57a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Spoleto.BookApi.Interfaces/Models/Auth/RefreshToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Spoleto.BookApi.Interfaces.Models.Auth
/// <summary>
/// The refresh token.
/// </summary>
public class RefreshToken : PersistentObjectBase, IRefreshToken
public class RefreshToken : ServiceObjectBase, IRefreshToken
{
/// <summary>
/// Gets or sets the hash value for this refresh token.
Expand Down
2 changes: 1 addition & 1 deletion src/Spoleto.BookApi.Interfaces/Models/Auth/Role.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Spoleto.BookApi.Interfaces.Models.Auth
/// <summary>
/// The user role for database authentication.
/// </summary>
public class Role : PersistentObjectBase, IRole
public class Role : ServiceObjectBase, IRole
{
/// <summary>
/// Gets or sets the role name.
Expand Down
15 changes: 15 additions & 0 deletions src/Spoleto.BookApi.Interfaces/Models/Auth/ServiceObjectBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;

namespace Spoleto.BookApi.Interfaces.Models.Auth
{
/// <summary>
/// The objects used as part of the Web API service.
/// </summary>
public class ServiceObjectBase : IPersistentObjectBase
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
public Guid? Identity { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Spoleto.BookApi.Interfaces/Models/Auth/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Spoleto.BookApi.Interfaces.Models.Auth
/// <summary>
/// The user for database authentication.
/// </summary>
public class User : PersistentObjectBase, Spoleto.BookApi.Interfaces.Auth.IUser
public class User : ServiceObjectBase, Spoleto.BookApi.Interfaces.Auth.IUser
{
/// <summary>
/// Gets or sets the user's first name.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System;
using Spoleto.BookApi.Interfaces.Models.Auth;
using Spoleto.BookApi.Interfaces.OperationTicket;

namespace Spoleto.BookApi.Interfaces.Models.OperationTicket
{
/// <summary>
/// The ticket for processing object containers.
/// </summary>
public class OperationTicket : PersistentObjectBase, IOperationTicket
public class OperationTicket : ServiceObjectBase, IOperationTicket
{
/// <summary>
/// The ticket that is not found.
Expand Down

0 comments on commit b36d57a

Please sign in to comment.