Skip to content

Commit

Permalink
Merge pull request #187 from leancodepl/fix/rename-serviceprovider-ph…
Browse files Browse the repository at this point in the history
…otos

Rename PromotionalBanner to CoverPhoto and ListItemPicture to Thumbnail
  • Loading branch information
jakubfijalkowski authored Jan 3, 2025
2 parents 6855bdc + 4f6aa43 commit d4f6ff1
Show file tree
Hide file tree
Showing 12 changed files with 725 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class CreateServiceProvider : ICommand
public string Name { get; set; }
public ServiceProviderTypeDTO Type { get; set; }
public string Description { get; set; }
public Uri PromotionalBanner { get; set; }
public Uri ListItemPicture { get; set; }
public Uri CoverPhoto { get; set; }
public Uri Thumbnail { get; set; }
public string Address { get; set; }
public LocationDTO Location { get; set; }
public double Ratings { get; set; }
Expand All @@ -22,8 +22,8 @@ public static class ErrorCodes
public const int TypeIsNullOrInvalid = 3;
public const int DescriptionIsNullOrEmpty = 4;
public const int DescriptionIsTooLong = 5;
public const int PromotionalBannerIsInvalid = 6;
public const int ListItemPictureIsInvalid = 7;
public const int CoverPhotoIsInvalid = 6;
public const int ThumbnailIsInvalid = 7;
public const int AddressIsNullOrEmpty = 8;
public const int AddressIsTooLong = 9;
public const int LocationIsNull = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ServiceProviderSummaryDTO
public string Id { get; set; }
public string Name { get; set; }
public ServiceProviderTypeDTO Type { get; set; }
public Uri ListItemPicture { get; set; }
public Uri Thumbnail { get; set; }
public bool IsPromotionActive { get; set; }
public string Address { get; set; }
public LocationDTO Location { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class ServiceProviderDetailsDTO
public bool IsPromotionActive { get; set; }
public double Ratings { get; set; }

public Uri PromotionalBanner { get; set; }
public Uri ListItemPicture { get; set; }
public Uri CoverPhoto { get; set; }
public Uri Thumbnail { get; set; }

public List<TimeslotDTO> Timeslots { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class ServiceProvider : IAggregateRoot<ServiceProviderId>
public string Name { get; private set; }
public ServiceProviderType Type { get; private set; }
public string Description { get; private set; }
public Uri PromotionalBanner { get; private set; }
public Uri ListItemPicture { get; private set; }
public Uri CoverPhoto { get; private set; }
public Uri Thumbnail { get; private set; }
public bool IsPromotionActive { get; private set; }
public double Ratings { get; private set; }

Expand All @@ -27,8 +27,8 @@ private ServiceProvider()
{
Name = null!;
Description = null!;
PromotionalBanner = null!;
ListItemPicture = null!;
CoverPhoto = null!;
Thumbnail = null!;
Address = null!;
Location = null!;
}
Expand All @@ -37,8 +37,8 @@ public static ServiceProvider Create(
string name,
ServiceProviderType type,
string description,
Uri promotionalBanner,
Uri listItemPicture,
Uri coverPhoto,
Uri thumbnail,
string address,
Location location,
double ratings
Expand All @@ -50,8 +50,8 @@ double ratings
Name = name,
Type = type,
Description = description,
PromotionalBanner = promotionalBanner,
ListItemPicture = listItemPicture,
CoverPhoto = coverPhoto,
Thumbnail = thumbnail,
Address = address,
Location = location,
Ratings = ratings,
Expand Down
Loading

0 comments on commit d4f6ff1

Please sign in to comment.