-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
41eba96
commit 524b1cc
Showing
8 changed files
with
219 additions
and
1 deletion.
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
74 changes: 74 additions & 0 deletions
74
src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetTrendingTopicsOutput.g.cs
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// <auto-generated /> | ||
// This file was generated by FFSourceGen. | ||
// Do not modify this file. | ||
|
||
#nullable enable | ||
|
||
namespace FishyFlip.Lexicon.App.Bsky.Unspecced | ||
{ | ||
public partial class GetTrendingTopicsOutput : ATObject | ||
{ | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetTrendingTopicsOutput"/> class. | ||
/// </summary> | ||
/// <param name="topics"></param> | ||
/// <param name="suggested"></param> | ||
public GetTrendingTopicsOutput(List<App.Bsky.Unspecced.TrendingTopic>? topics = default, List<App.Bsky.Unspecced.TrendingTopic>? suggested = default) | ||
{ | ||
this.Topics = topics; | ||
this.Suggested = suggested; | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetTrendingTopicsOutput"/> class. | ||
/// </summary> | ||
public GetTrendingTopicsOutput() | ||
{ | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetTrendingTopicsOutput"/> class. | ||
/// </summary> | ||
public GetTrendingTopicsOutput(CBORObject obj) | ||
{ | ||
if (obj["topics"] is not null) this.Topics = obj["topics"].Values.Select(n =>new App.Bsky.Unspecced.TrendingTopic(n)).ToList(); | ||
if (obj["suggested"] is not null) this.Suggested = obj["suggested"].Values.Select(n =>new App.Bsky.Unspecced.TrendingTopic(n)).ToList(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the topics. | ||
/// </summary> | ||
[JsonPropertyName("topics")] | ||
[JsonRequired] | ||
public List<App.Bsky.Unspecced.TrendingTopic>? Topics { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the suggested. | ||
/// </summary> | ||
[JsonPropertyName("suggested")] | ||
[JsonRequired] | ||
public List<App.Bsky.Unspecced.TrendingTopic>? Suggested { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the ATRecord Type. | ||
/// </summary> | ||
[JsonPropertyName("$type")] | ||
public override string Type => "app.bsky.unspecced.getTrendingTopics#GetTrendingTopicsOutput"; | ||
|
||
public const string RecordType = "app.bsky.unspecced.getTrendingTopics#GetTrendingTopicsOutput"; | ||
|
||
public override string ToJson() | ||
{ | ||
return JsonSerializer.Serialize<App.Bsky.Unspecced.GetTrendingTopicsOutput>(this, (JsonTypeInfo<App.Bsky.Unspecced.GetTrendingTopicsOutput>)SourceGenerationContext.Default.AppBskyUnspeccedGetTrendingTopicsOutput)!; | ||
} | ||
|
||
public static GetTrendingTopicsOutput FromJson(string json) | ||
{ | ||
return JsonSerializer.Deserialize<App.Bsky.Unspecced.GetTrendingTopicsOutput>(json, (JsonTypeInfo<App.Bsky.Unspecced.GetTrendingTopicsOutput>)SourceGenerationContext.Default.AppBskyUnspeccedGetTrendingTopicsOutput)!; | ||
} | ||
} | ||
} | ||
|
92 changes: 92 additions & 0 deletions
92
src/FishyFlip/Lexicon/App/Bsky/Unspecced/TrendingTopic.g.cs
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// <auto-generated /> | ||
// This file was generated by FFSourceGen. | ||
// Do not modify this file. | ||
|
||
#nullable enable | ||
|
||
namespace FishyFlip.Lexicon.App.Bsky.Unspecced | ||
{ | ||
public partial class TrendingTopic : ATObject | ||
{ | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TrendingTopic"/> class. | ||
/// </summary> | ||
/// <param name="topic"></param> | ||
/// <param name="displayName"></param> | ||
/// <param name="description"></param> | ||
/// <param name="link"></param> | ||
public TrendingTopic(string? topic = default, string? displayName = default, string? description = default, string? link = default) | ||
{ | ||
this.Topic = topic; | ||
this.DisplayName = displayName; | ||
this.Description = description; | ||
this.Link = link; | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TrendingTopic"/> class. | ||
/// </summary> | ||
public TrendingTopic() | ||
{ | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TrendingTopic"/> class. | ||
/// </summary> | ||
public TrendingTopic(CBORObject obj) | ||
{ | ||
if (obj["topic"] is not null) this.Topic = obj["topic"].AsString(); | ||
if (obj["displayName"] is not null) this.DisplayName = obj["displayName"].AsString(); | ||
if (obj["description"] is not null) this.Description = obj["description"].AsString(); | ||
if (obj["link"] is not null) this.Link = obj["link"].AsString(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the topic. | ||
/// </summary> | ||
[JsonPropertyName("topic")] | ||
[JsonRequired] | ||
public string? Topic { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the displayName. | ||
/// </summary> | ||
[JsonPropertyName("displayName")] | ||
public string? DisplayName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the description. | ||
/// </summary> | ||
[JsonPropertyName("description")] | ||
public string? Description { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the link. | ||
/// </summary> | ||
[JsonPropertyName("link")] | ||
[JsonRequired] | ||
public string? Link { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the ATRecord Type. | ||
/// </summary> | ||
[JsonPropertyName("$type")] | ||
public override string Type => "app.bsky.unspecced.defs#trendingTopic"; | ||
|
||
public const string RecordType = "app.bsky.unspecced.defs#trendingTopic"; | ||
|
||
public override string ToJson() | ||
{ | ||
return JsonSerializer.Serialize<App.Bsky.Unspecced.TrendingTopic>(this, (JsonTypeInfo<App.Bsky.Unspecced.TrendingTopic>)SourceGenerationContext.Default.AppBskyUnspeccedTrendingTopic)!; | ||
} | ||
|
||
public static TrendingTopic FromJson(string json) | ||
{ | ||
return JsonSerializer.Deserialize<App.Bsky.Unspecced.TrendingTopic>(json, (JsonTypeInfo<App.Bsky.Unspecced.TrendingTopic>)SourceGenerationContext.Default.AppBskyUnspeccedTrendingTopic)!; | ||
} | ||
} | ||
} | ||
|
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