Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'development' of https://github.com/PromoFaux/Matterhook…
Browse files Browse the repository at this point in the history
….NET into development
  • Loading branch information
Adam Warner committed Dec 12, 2017
2 parents 41df131 + 3b62c6a commit 99d3bba
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 138 deletions.
24 changes: 12 additions & 12 deletions Matterhook.NET/Webhooks/Discourse/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@ namespace Matterhook.NET.Webhooks.Discourse
{
public class Post
{
public ulong id { get; set; }
public long id { get; set; }
public string name { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
public DateTime created_at { get; set; }
public string cooked { get; set; }
public ulong post_number { get; set; }
public ulong post_type { get; set; }
public long post_number { get; set; }
public long post_type { get; set; }
public DateTime updated_at { get; set; }
public ulong reply_count { get; set; }
public ulong? reply_to_post_number { get; set; }
public ulong quote_count { get; set; }
public long reply_count { get; set; }
public long? reply_to_post_number { get; set; }
public long quote_count { get; set; }
public object avg_time { get; set; }
public ulong incoming_link_count { get; set; }
public ulong reads { get; set; }
public long incoming_link_count { get; set; }
public long reads { get; set; }
public float score { get; set; }
public bool yours { get; set; }
public ulong topic_id { get; set; }
public long topic_id { get; set; }
public string topic_slug { get; set; }
public string topic_title { get; set; }
public string display_username { get; set; }
public object primary_group_name { get; set; }
public object primary_group_flair_url { get; set; }
public object primary_group_flair_bg_color { get; set; }
public object primary_group_flair_color { get; set; }
public ulong version { get; set; }
public long version { get; set; }
public object user_title { get; set; }
public Reply_To_User reply_to_user { get; set; }
public Actions_Summary[] actions_summary { get; set; }
public bool moderator { get; set; }
public bool admin { get; set; }
public bool staff { get; set; }
public ulong user_id { get; set; }
public long user_id { get; set; }
public bool hidden { get; set; }
public object hidden_reason_id { get; set; }
public ulong trust_level { get; set; }
public long trust_level { get; set; }
public object deleted_at { get; set; }
public bool user_deleted { get; set; }
public object edit_reason { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions Matterhook.NET/Webhooks/Discourse/Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
public class Actions_Summary
{
public ulong id { get; set; }
public ulong count { get; set; }
public long id { get; set; }
public long count { get; set; }
public bool hidden { get; set; }
public bool can_act { get; set; }
}
Expand Down
62 changes: 31 additions & 31 deletions Matterhook.NET/Webhooks/Discourse/Topic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ namespace Matterhook.NET.Webhooks.Discourse
{
public class Topic
{
public ulong id { get; set; }
public long id { get; set; }
public string title { get; set; }
public string fancy_title { get; set; }
public ulong posts_count { get; set; }
public long posts_count { get; set; }
public DateTime created_at { get; set; }
public ulong views { get; set; }
public ulong reply_count { get; set; }
public ulong participant_count { get; set; }
public ulong like_count { get; set; }
public long views { get; set; }
public long reply_count { get; set; }
public long participant_count { get; set; }
public long like_count { get; set; }
public DateTime last_posted_at { get; set; }
public bool visible { get; set; }
public bool closed { get; set; }
Expand All @@ -21,32 +21,32 @@ public class Topic
public string archetype { get; set; }
public string slug { get; set; }
public object category_id { get; set; }
public ulong word_count { get; set; }
public long word_count { get; set; }
public object deleted_at { get; set; }
public ulong pending_posts_count { get; set; }
public ulong user_id { get; set; }
public long pending_posts_count { get; set; }
public long user_id { get; set; }
public bool pm_with_non_human_user { get; set; }
public object draft { get; set; }
public string draft_key { get; set; }
public ulong draft_sequence { get; set; }
public long draft_sequence { get; set; }
public object unpinned { get; set; }
public bool pinned_globally { get; set; }
public bool pinned { get; set; }
public object pinned_at { get; set; }
public object pinned_until { get; set; }
public Details details { get; set; }
public ulong highest_post_number { get; set; }
public long highest_post_number { get; set; }
public object deleted_by { get; set; }
public bool has_deleted { get; set; }
public Actions_Summary[] actions_summary { get; set; }
public ulong chunk_size { get; set; }
public long chunk_size { get; set; }
public object bookmarked { get; set; }
public bool message_archived { get; set; }
public object[] tags { get; set; }
public object featured_link { get; set; }
public object topic_timer { get; set; }
public string unicode_title { get; set; }
public ulong message_bus_last_id { get; set; }
public long message_bus_last_id { get; set; }
public bool can_vote { get; set; }
public object vote_count { get; set; }
public bool user_voted { get; set; }
Expand All @@ -61,7 +61,7 @@ public class Details
public Participant[] participants { get; set; }
public Suggested_Topics[] suggested_topics { get; set; }
public Link[] links { get; set; }
public ulong notification_level { get; set; }
public long notification_level { get; set; }
public bool can_move_posts { get; set; }
public bool can_edit { get; set; }
public bool can_delete { get; set; }
Expand All @@ -75,31 +75,31 @@ public class Details

public class Created_By
{
public ulong id { get; set; }
public long id { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
}

public class Last_Poster
{
public ulong id { get; set; }
public long id { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
}

public class Allowed_Users
{
public ulong id { get; set; }
public long id { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
}

public class Participant
{
public ulong id { get; set; }
public long id { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
public ulong post_count { get; set; }
public long post_count { get; set; }
public object primary_group_name { get; set; }
public object primary_group_flair_url { get; set; }
public object primary_group_flair_color { get; set; }
Expand All @@ -108,33 +108,33 @@ public class Participant

public class Suggested_Topics
{
public ulong id { get; set; }
public long id { get; set; }
public string title { get; set; }
public string fancy_title { get; set; }
public string slug { get; set; }
public ulong posts_count { get; set; }
public ulong reply_count { get; set; }
public ulong highest_post_number { get; set; }
public long posts_count { get; set; }
public long reply_count { get; set; }
public long highest_post_number { get; set; }
public object image_url { get; set; }
public DateTime created_at { get; set; }
public DateTime last_posted_at { get; set; }
public bool bumped { get; set; }
public DateTime bumped_at { get; set; }
public bool unseen { get; set; }
public ulong last_read_post_number { get; set; }
public ulong unread { get; set; }
public ulong new_posts { get; set; }
public long last_read_post_number { get; set; }
public long unread { get; set; }
public long new_posts { get; set; }
public bool pinned { get; set; }
public object unpinned { get; set; }
public bool visible { get; set; }
public bool closed { get; set; }
public bool archived { get; set; }
public ulong notification_level { get; set; }
public long notification_level { get; set; }
public bool bookmarked { get; set; }
public bool liked { get; set; }
public string archetype { get; set; }
public ulong like_count { get; set; }
public ulong views { get; set; }
public long like_count { get; set; }
public long views { get; set; }
public object category_id { get; set; }
public object[] tags { get; set; }
public object featured_link { get; set; }
Expand All @@ -156,8 +156,8 @@ public class Link
public bool _internal { get; set; }
public bool attachment { get; set; }
public bool reflection { get; set; }
public ulong clicks { get; set; }
public ulong user_id { get; set; }
public long clicks { get; set; }
public long user_id { get; set; }
public string domain { get; set; }
}

Expand Down
52 changes: 26 additions & 26 deletions Matterhook.NET/Webhooks/Discourse/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Matterhook.NET.Webhooks.Discourse

public class User
{
public ulong id { get; set; }
public long id { get; set; }
public string username { get; set; }
public string avatar_template { get; set; }
public string name { get; set; }
Expand All @@ -20,21 +20,21 @@ public class User
public object[] stats { get; set; }
public bool can_send_private_messages { get; set; }
public bool can_send_private_message_to_user { get; set; }
public ulong trust_level { get; set; }
public long trust_level { get; set; }
public bool moderator { get; set; }
public bool admin { get; set; }
public object title { get; set; }
public object uploaded_avatar_id { get; set; }
public ulong badge_count { get; set; }
public long badge_count { get; set; }
public bool has_title_badges { get; set; }
public object custom_fields { get; set; }
public ulong pending_count { get; set; }
public ulong profile_view_count { get; set; }
public long pending_count { get; set; }
public long profile_view_count { get; set; }
public object primary_group_name { get; set; }
public object primary_group_flair_url { get; set; }
public object primary_group_flair_bg_color { get; set; }
public object primary_group_flair_color { get; set; }
public ulong post_count { get; set; }
public long post_count { get; set; }
public bool can_be_deleted { get; set; }
public bool can_delete_all_posts { get; set; }
public string locale { get; set; }
Expand All @@ -54,7 +54,7 @@ public class User
public object custom_avatar_upload_id { get; set; }
public object custom_avatar_template { get; set; }
public object[] muted_usernames { get; set; }
public ulong mailing_list_posts_per_day { get; set; }
public long mailing_list_posts_per_day { get; set; }
public bool can_change_bio { get; set; }
public object user_api_keys { get; set; }
public object invited_by { get; set; }
Expand All @@ -67,17 +67,17 @@ public class User

public class Private_Messages_Stats
{
public ulong all { get; set; }
public ulong mine { get; set; }
public ulong unread { get; set; }
public long all { get; set; }
public long mine { get; set; }
public long unread { get; set; }
}

public class User_Option
{
public ulong user_id { get; set; }
public long user_id { get; set; }
public bool email_always { get; set; }
public bool mailing_list_mode { get; set; }
public ulong mailing_list_mode_frequency { get; set; }
public long mailing_list_mode_frequency { get; set; }
public bool email_digests { get; set; }
public bool email_private_messages { get; set; }
public bool email_direct { get; set; }
Expand All @@ -87,26 +87,26 @@ public class User_Option
public bool disable_jump_reply { get; set; }
public object digest_after_minutes { get; set; }
public bool automatically_unpin_topics { get; set; }
public ulong auto_track_topics_after_msecs { get; set; }
public ulong notification_level_when_replying { get; set; }
public ulong new_topic_duration_minutes { get; set; }
public ulong email_previous_replies { get; set; }
public long auto_track_topics_after_msecs { get; set; }
public long notification_level_when_replying { get; set; }
public long new_topic_duration_minutes { get; set; }
public long email_previous_replies { get; set; }
public bool email_in_reply_to { get; set; }
public ulong like_notification_frequency { get; set; }
public long like_notification_frequency { get; set; }
public bool include_tl0_in_digests { get; set; }
public string theme_key { get; set; }
public ulong theme_key_seq { get; set; }
public long theme_key_seq { get; set; }
}

public class Group
{
public ulong id { get; set; }
public long id { get; set; }
public bool automatic { get; set; }
public string name { get; set; }
public string display_name { get; set; }
public ulong user_count { get; set; }
public ulong alias_level { get; set; }
public ulong visibility_level { get; set; }
public long user_count { get; set; }
public long alias_level { get; set; }
public long visibility_level { get; set; }
public object automatic_membership_email_domains { get; set; }
public bool automatic_membership_retroactive { get; set; }
public bool primary_group { get; set; }
Expand All @@ -123,15 +123,15 @@ public class Group
public bool public_exit { get; set; }
public bool allow_membership_requests { get; set; }
public object full_name { get; set; }
public ulong default_notification_level { get; set; }
public long default_notification_level { get; set; }
public object membership_request_template { get; set; }
}

public class Group_Users
{
public ulong group_id { get; set; }
public ulong user_id { get; set; }
public ulong notification_level { get; set; }
public long group_id { get; set; }
public long user_id { get; set; }
public long notification_level { get; set; }
}

}
4 changes: 2 additions & 2 deletions Matterhook.NET/Webhooks/DockerHub/Payload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public class Repository
public string Namespace { get; set; }

[JsonProperty(PropertyName = "star_count")]
public ulong StarCount { get; set; }
public long StarCount { get; set; }

[JsonProperty(PropertyName = "comment_count")]
public ulong CommentCount { get; set; }
public long CommentCount { get; set; }

[JsonConverter(typeof(UnixDateTimeConverter))]
[JsonProperty(PropertyName = "date_created")]
Expand Down
Loading

0 comments on commit 99d3bba

Please sign in to comment.