-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
1,760 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,77 @@ | ||
using Flickr.Net.Core.Internals.Attributes; | ||
using Flickr.Net.Core.Internals.JsonConverters.IdentifierConverters; | ||
|
||
namespace Flickr.Net.Core.Bases; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IIdentifierType | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public abstract record IdentifierType : IIdentifierType | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
protected string _id; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public static implicit operator string(IdentifierType value) => value._id; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public static implicit operator IdentifierType(string value) => new Id() { _id = value }; | ||
} | ||
|
||
/// <inheritdoc/> | ||
[FlickrJsonPropertyName("id")] | ||
public record Id : IdentifierType | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator string(Id value) => value._id; | ||
|
||
public static implicit operator Id(string value) => new Id() { _id = value }; | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator Id(string value) => new() { _id = value }; | ||
} | ||
|
||
/// <inheritdoc/> | ||
[FlickrJsonPropertyName("nsid")] | ||
public record NsId : IdentifierType | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator string(NsId value) => value._id; | ||
|
||
public static implicit operator NsId(string value) => new NsId() { _id = value }; | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator NsId(string value) => new() { _id = value }; | ||
} | ||
|
||
/// <inheritdoc/> | ||
[FlickrJsonPropertyName("photo_id")] | ||
public record PhotoId : IdentifierType | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator string(PhotoId value) => value._id; | ||
|
||
public static implicit operator PhotoId(string value) => new PhotoId() { _id = value }; | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator PhotoId(string value) => new() { _id = value }; | ||
} | ||
|
||
/// <inheritdoc/> | ||
[FlickrJsonPropertyName("photoset_id")] | ||
public record PhotosetId : IdentifierType | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator string(PhotosetId value) => value._id; | ||
|
||
public static implicit operator PhotosetId(string value) => new PhotosetId() { _id = value }; | ||
/// <summary> | ||
/// </summary> | ||
public static implicit operator PhotosetId(string value) => new() { _id = value }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,76 @@ | ||
namespace Flickr.Net.Core; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IThumbnailUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ISquareUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ILargeSquareUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ISmallUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ISmall320Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ISmall400Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IMediumUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IMedium640Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IMedium800Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ILargeUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ILarge1600Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface ILarge2048Url | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IOriginalUrl | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IBuddyIcon | ||
{ } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public interface IWebUrl | ||
{ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.