forked from FritzAndFriends/TagzApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doing some cleanup of all the Warnings that litter the build - Part 3 (…
- Loading branch information
Showing
5 changed files
with
76 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
namespace TagzApp.Providers.Blazot.Events; | ||
|
||
internal interface IAuthEvents | ||
internal interface IAuthEvents | ||
{ | ||
event EventHandler AccessTokenUpdated; | ||
event EventHandler AccessTokenUpdated; | ||
|
||
void NotifyAccessTokenUpdated(); | ||
void NotifyAccessTokenUpdated(); | ||
} | ||
|
||
internal class AuthEvents : IAuthEvents | ||
{ | ||
public event EventHandler AccessTokenUpdated; | ||
// TODO: Check CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
public event EventHandler AccessTokenUpdated; | ||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
|
||
public void NotifyAccessTokenUpdated() => AccessTokenUpdated.Invoke(this, EventArgs.Empty); | ||
public void NotifyAccessTokenUpdated() => AccessTokenUpdated.Invoke(this, EventArgs.Empty); | ||
} |
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,9 +1,15 @@ | ||
namespace TagzApp.Providers.Blazot.Models; | ||
|
||
// TODO: Check CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
public class Author | ||
{ | ||
public string UserName { get; set; } | ||
public string DisplayName { get; set; } | ||
public bool IsSubscriber { get; set; } | ||
public int? SubscriptionLevel { get; set; } | ||
public string ProfileImageUrl { get; set; } | ||
|
||
public string UserName { get; set; } | ||
|
||
public string DisplayName { get; set; } | ||
public bool IsSubscriber { get; set; } | ||
public int? SubscriptionLevel { get; set; } | ||
public string ProfileImageUrl { get; set; } | ||
} | ||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. |
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,38 +1,43 @@ | ||
namespace TagzApp.Providers.Blazot.Models; | ||
|
||
public class Transmission | ||
{ | ||
/// <summary> | ||
/// The unique identifier for the transmission. | ||
/// </summary> | ||
public Guid TransmissionId { get; set; } | ||
|
||
/// <summary> | ||
/// The unique identifier for the parent transmission that this transmission is a response to. | ||
/// </summary> | ||
public Guid? ParentItemId { get; set; } | ||
|
||
/// <summary> | ||
/// The UTC date/time this transmission was transmitted. | ||
/// </summary> | ||
public DateTime DateTransmitted { get; set; } | ||
|
||
/// <summary> | ||
/// The transmission text. | ||
/// </summary> | ||
public string Body { get; set; } | ||
|
||
/// <summary> | ||
/// The author object. | ||
/// </summary> | ||
public Author Author { get; set; } | ||
|
||
/// <summary> | ||
/// Video or images within this transmission. | ||
/// </summary> | ||
public List<Media> Media { get; set; } | ||
|
||
public WebLink WebLink { get; set; } | ||
|
||
public Transmission RelayedTransmission { get; set; } | ||
// TODO: Check CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
public class Transmission | ||
{ | ||
/// <summary> | ||
/// The unique identifier for the transmission. | ||
/// </summary> | ||
public Guid TransmissionId { get; set; } | ||
|
||
/// <summary> | ||
/// The unique identifier for the parent transmission that this transmission is a response to. | ||
/// </summary> | ||
public Guid? ParentItemId { get; set; } | ||
|
||
/// <summary> | ||
/// The UTC date/time this transmission was transmitted. | ||
/// </summary> | ||
public DateTime DateTransmitted { get; set; } | ||
|
||
/// <summary> | ||
/// The transmission text. | ||
/// </summary> | ||
|
||
public string Body { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// The author object. | ||
/// </summary> | ||
public Author Author { get; set; } | ||
|
||
/// <summary> | ||
/// Video or images within this transmission. | ||
/// </summary> | ||
public List<Media> Media { get; set; } | ||
|
||
public WebLink WebLink { get; set; } | ||
|
||
public Transmission RelayedTransmission { get; set; } | ||
} | ||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. |
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,8 +1,14 @@ | ||
namespace TagzApp.Providers.Blazot.Models; | ||
|
||
// TODO: Check CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
public class WebLink | ||
{ | ||
public string LinkUrl { get; set; } | ||
public string ImageUrl { get; set; } | ||
public string Title { get; set; } | ||
public string Description { get; set; } | ||
|
||
public string LinkUrl { get; set; } | ||
|
||
public string ImageUrl { get; set; } | ||
public string Title { get; set; } | ||
public string Description { get; set; } | ||
} | ||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. |
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