Skip to content

Commit

Permalink
close #146
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavecarroll committed Oct 30, 2022
1 parent 9b75941 commit 1b7bd0c
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 29 deletions.
1 change: 0 additions & 1 deletion src/APIV2/MediaInfo/Metrics/NonPublic.cs
Expand Up @@ -20,7 +20,6 @@ public NonPublic(dynamic input)
PlaybackCount_50 = input.playback_50_count;
PlaybackCount_75 = input.playback_75_count;
ViewCount = input.view_count;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/MediaInfo/Metrics/Organic.cs
Expand Up @@ -20,7 +20,6 @@ public Organic(dynamic input)
PlaybackCount_50 = input.playback_50_count;
PlaybackCount_75 = input.playback_75_count;
ViewCount = input.view_count;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/MediaInfo/Metrics/Promoted.cs
Expand Up @@ -20,7 +20,6 @@ public Promoted(dynamic input)
PlaybackCount_50 = input.playback_50_count;
PlaybackCount_75 = input.playback_75_count;
ViewCount = input.view_count;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/MediaInfo/Metrics/Public.cs
Expand Up @@ -10,7 +10,6 @@ public class Public : BaseMetrics
public Public(dynamic input)
{
ViewCount = input.view_count;
OriginalObject = input;
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/APIV2/Objects/BaseMetrics.cs
Expand Up @@ -3,7 +3,7 @@

namespace BluebirdPS.APIV2.Objects
{
public class BaseMetrics : TwitterObject
public class BaseMetrics
{
public override string ToString()
{
Expand Down
3 changes: 1 addition & 2 deletions src/APIV2/Objects/WithheldContent.cs
Expand Up @@ -2,7 +2,7 @@

namespace BluebirdPS.APIV2.Objects
{
public class WithheldContent : TwitterObject
public class WithheldContent
{
public bool Copyright { get; set; }
public List<string> CountryCodes { get; set; }
Expand All @@ -16,7 +16,6 @@ public WithheldContent(dynamic input)
}
Copyright = input.copyright;
CountryCodes = input.country_codes;
OriginalObject = input;
}

}
Expand Down
18 changes: 6 additions & 12 deletions src/APIV2/TweetInfo/Context/ContextAnnotation.cs
@@ -1,20 +1,14 @@
namespace BluebirdPS.APIV2.TweetInfo.Context {
public class ContextAnnotation : TwitterObject
public class ContextAnnotation
{
public Domain Domain { get; set; }
public Entity Entity { get; set; }

ContextAnnotation() { }
ContextAnnotation(dynamic input) {
OriginalObject = input;
if (Helpers.HasProperty(input, "domain"))
{
Domain = new Domain(input.domain);
}
if (Helpers.HasProperty(input, "entity"))
{
Entity = new Entity(input.entity);
}
public ContextAnnotation() { }
public ContextAnnotation(dynamic input)
{
Domain = new Domain(input.domain);
Entity = new Entity(input.entity);
}

}
Expand Down
4 changes: 1 addition & 3 deletions src/APIV2/TweetInfo/Context/Domain.cs
@@ -1,5 +1,5 @@
namespace BluebirdPS.APIV2.TweetInfo.Context {
public class Domain : TwitterObject
public class Domain
{
public string Id { get; set; }
public string Name { get; set; }
Expand All @@ -11,8 +11,6 @@ public Domain(dynamic input)
Id = input.id;
Name = input.name;
Description = input.description;
OriginalObject = input;
OriginalObject = input;
}

}
Expand Down
3 changes: 1 addition & 2 deletions src/APIV2/TweetInfo/Context/Entity.cs
@@ -1,6 +1,6 @@
namespace BluebirdPS.APIV2.TweetInfo.Context
{
public class Entity : TwitterObject
public class Entity
{
public string Id { get; set; }
public string Name { get; set; }
Expand All @@ -10,7 +10,6 @@ public Entity(dynamic input)
{
Id = input.id;
Name = input.name;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/TweetInfo/Metrics/NonPublic.cs
Expand Up @@ -14,7 +14,6 @@ public NonPublic(dynamic input)
ImpressionCount = input.impression_count;
UrlLinkClicks = input.url_link_clicks;
UserProfileClicks = input.user_profile_clicks;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/TweetInfo/Metrics/Organic.cs
Expand Up @@ -20,7 +20,6 @@ public Organic(dynamic input)
RetweetCount = input.retweet_count;
UrlLinkClicks = input.url_link_clicks;
UserProfileClicks = input.user_profile_clicks;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/TweetInfo/Metrics/Promoted.cs
Expand Up @@ -20,7 +20,6 @@ public Promoted(dynamic input)
RetweetCount = input.retweet_count;
UrlLinkClicks = input.url_link_clicks;
UserProfileClicks = input.user_profile_clicks;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/TweetInfo/Metrics/Public.cs
Expand Up @@ -16,7 +16,6 @@ public Public(dynamic input)
ReplyCount = input.reply_count;
LikeCount = input.like_count;
QuoteCount = input.quote_count;
OriginalObject = input;
}

}
Expand Down
1 change: 0 additions & 1 deletion src/APIV2/UserInfo/Metrics/Public.cs
Expand Up @@ -16,7 +16,6 @@ public Public(dynamic input)
FollowingCount = input.following_count;
ListedCount = input.listed_count;
TweetCount = input.tweet_count;
OriginalObject = input;
}

}
Expand Down

0 comments on commit 1b7bd0c

Please sign in to comment.