-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1066 Tweets and users can now be retrieved by string id from the cli…
…ents
- Loading branch information
Showing
15 changed files
with
121 additions
and
84 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
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
20 changes: 20 additions & 0 deletions
20
src/Tweetinvi.Core/Public/Parameters/V2/UsersClientV2/GetUserByNameV2Parameters.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,20 @@ | ||
using Tweetinvi.Core.Parameters; | ||
|
||
namespace Tweetinvi.Parameters.V2 | ||
{ | ||
public interface IGetUserByNameV2Parameters : IBaseUsersV2GetByParameters | ||
{ | ||
string Username { get; set; } | ||
} | ||
|
||
public class GetUserByNameV2Parameters : BaseUsersV2GetByParameters, IGetUserByNameV2Parameters | ||
{ | ||
public GetUserByNameV2Parameters(string username) : base("username") | ||
{ | ||
Username = username; | ||
this.WithAllFields(); | ||
} | ||
|
||
public string Username { get; set; } | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
src/Tweetinvi.Core/Public/Parameters/V2/UsersClientV2/GetUserByUsernameV2Parameters.cs
This file was deleted.
Oops, something went wrong.
14 changes: 11 additions & 3 deletions
14
src/Tweetinvi.Core/Public/Parameters/V2/UsersClientV2/GetUsersByIdV2Parameters.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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
using System.Linq; | ||
using Tweetinvi.Core.Parameters; | ||
|
||
namespace Tweetinvi.Parameters.V2 | ||
{ | ||
public interface IGetUsersByIdV2Parameters : IBaseUsersV2Parameters | ||
{ | ||
long[] UserIds { get; set; } | ||
string[] UserIds { get; set; } | ||
} | ||
|
||
public class GetUsersByIdV2Parameters : BaseUsersV2Parameters, IGetUsersByIdV2Parameters | ||
{ | ||
public GetUsersByIdV2Parameters(params long[] userIds) | ||
{ | ||
UserIds = userIds.Select(x => x.ToString()).ToArray(); | ||
this.WithAllFields(); | ||
} | ||
|
||
public GetUsersByIdV2Parameters(params string[] userIds) | ||
{ | ||
UserIds = userIds; | ||
this.WithAllFields(); | ||
; } | ||
; | ||
} | ||
|
||
public long[] UserIds { get; set; } | ||
public string[] UserIds { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Tweetinvi.Core/Public/Parameters/V2/UsersClientV2/GetUsersByNameV2Parameters.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,20 @@ | ||
using Tweetinvi.Core.Parameters; | ||
|
||
namespace Tweetinvi.Parameters.V2 | ||
{ | ||
public interface IGetUsersByNameV2Parameters : IBaseUsersV2GetByParameters | ||
{ | ||
string[] Usernames { get; set; } | ||
} | ||
|
||
public class GetUsersByNameV2Parameters : BaseUsersV2GetByParameters, IGetUsersByNameV2Parameters | ||
{ | ||
public GetUsersByNameV2Parameters(params string[] usernames) : base("username") | ||
{ | ||
Usernames = usernames; | ||
this.WithAllFields(); | ||
} | ||
|
||
public string[] Usernames { get; set; } | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
src/Tweetinvi.Core/Public/Parameters/V2/UsersClientV2/GetUsersByUsernameV2Parameters.cs
This file was deleted.
Oops, something went wrong.
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.