Skip to content

Commit 941d2aa

Browse files
GoldenTaoGoldenTao
GoldenTao
authored and
GoldenTao
committed
Nuget fixes for externals for each project and source files so project will compile
Added Friendship/NoRetweetIDs Added Friendship/Update Modified Friendship/Relationship to not use TwitterUser and use specific relationship objects that include all the new properties. Removed Trends/Current Added Trends/WOEID Added Trends/Available Added Trends/Daily Added Trends/Weekly Added SinceStatusId to Favorites Added InReplyToStatusID to Search Results
1 parent 106fac1 commit 941d2aa

File tree

110 files changed

+55210
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+55210
-47
lines changed

Packages.dgml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<DirectedGraph GraphDirection="LeftToRight" xmlns="http://schemas.microsoft.com/vs/2009/dgml">
3+
<Nodes />
4+
<Links />
5+
<Categories>
6+
<Category Id="Project" />
7+
<Category Id="Package" />
8+
</Categories>
9+
<Styles>
10+
<Style TargetType="Node" GroupLabel="Project" ValueLabel="True">
11+
<Condition Expression="HasCategory('Project')" />
12+
<Setter Property="Background" Value="Blue" />
13+
</Style>
14+
</Styles>
15+
</DirectedGraph>

Twitterizer.OAuth/Twitterizer.OAuth.csproj

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
<AssemblyOriginatorKeyFile>..\Twitterizer2\Twitterizer2.snk</AssemblyOriginatorKeyFile>
5858
</PropertyGroup>
5959
<ItemGroup>
60+
<Reference Include="Newtonsoft.Json">
61+
<HintPath>..\packages\Newtonsoft.Json.4.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
62+
</Reference>
6063
<Reference Include="System" />
6164
<Reference Include="System.Core" />
6265
<Reference Include="System.Web" />
@@ -113,6 +116,7 @@
113116
<None Include="..\Twitterizer2\Twitterizer2.snk">
114117
<Link>Twitterizer2.snk</Link>
115118
</None>
119+
<None Include="packages.config" />
116120
</ItemGroup>
117121
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
118122
<PropertyGroup>

Twitterizer.OAuth/packages.config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Newtonsoft.Json" version="4.0.3" />
4+
</packages>

Twitterizer2.Async.Silverlight/Twitterizer2.Async.Silverlight.csproj

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
</PropertyGroup>
4949
<ItemGroup>
5050
<Reference Include="mscorlib" />
51+
<Reference Include="Newtonsoft.Json">
52+
<HintPath>..\packages\Newtonsoft.Json.4.0.3\lib\sl4\Newtonsoft.Json.dll</HintPath>
53+
</Reference>
5154
<Reference Include="System.ServiceModel" />
5255
<Reference Include="System.Windows" />
5356
<Reference Include="system" />
@@ -119,6 +122,9 @@
119122
<Name>Twitterizer2.Silverlight</Name>
120123
</ProjectReference>
121124
</ItemGroup>
125+
<ItemGroup>
126+
<None Include="packages.config" />
127+
</ItemGroup>
122128
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
123129
<ProjectExtensions>
124130
<VisualStudio>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Newtonsoft.Json" version="4.0.3" />
4+
</packages>

Twitterizer2.Async/TwitterFriendshipAsync.cs

+183
Original file line numberDiff line numberDiff line change
@@ -306,5 +306,188 @@ public static IAsyncResult OutgoingRequests(OAuthTokens tokens, OutgoingFriendsh
306306
},
307307
null);
308308
}
309+
310+
/// <summary>
311+
/// Returns the numeric IDs for every user the specified user is does not want to see retweets from.
312+
/// </summary>
313+
/// <param name="tokens">The tokens.</param>
314+
/// <param name="options">The options.</param>
315+
/// <param name="timeout">The timeout.</param>
316+
/// <param name="function">The function.</param>
317+
/// <returns></returns>
318+
public static IAsyncResult NoRetweetIDs(OAuthTokens tokens, OptionalProperties options, TimeSpan timeout, Action<TwitterAsyncResponse<UserIdCollection>> function)
319+
{
320+
Func<OAuthTokens, OptionalProperties, TwitterResponse<UserIdCollection>> methodToCall = TwitterFriendship.NoRetweetIDs;
321+
322+
return methodToCall.BeginInvoke(
323+
tokens,
324+
options,
325+
result =>
326+
{
327+
result.AsyncWaitHandle.WaitOne(timeout);
328+
try
329+
{
330+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
331+
}
332+
catch (Exception ex)
333+
{
334+
function(new TwitterAsyncResponse<UserIdCollection>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
335+
}
336+
},
337+
null);
338+
}
339+
340+
/// <summary>
341+
/// Returns the numeric IDs for every user the specified user is does not want to see retweets from.
342+
/// </summary>
343+
/// <param name="tokens">The tokens.</param>
344+
/// <param name="timeout">The timeout.</param>
345+
/// <param name="function">The function.</param>
346+
/// <returns></returns>
347+
public static IAsyncResult NoRetweetIDs(OAuthTokens tokens, TimeSpan timeout, Action<TwitterAsyncResponse<UserIdCollection>> function)
348+
{
349+
Func<OAuthTokens, TwitterResponse<UserIdCollection>> methodToCall = TwitterFriendship.NoRetweetIDs;
350+
351+
return methodToCall.BeginInvoke(
352+
tokens,
353+
result =>
354+
{
355+
result.AsyncWaitHandle.WaitOne(timeout);
356+
try
357+
{
358+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
359+
}
360+
catch (Exception ex)
361+
{
362+
function(new TwitterAsyncResponse<UserIdCollection>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
363+
}
364+
},
365+
null);
366+
}
367+
368+
369+
/// <summary>
370+
/// Updates the friendship.
371+
/// </summary>
372+
/// <param name="tokens">The tokens.</param>
373+
/// <param name="userid">The userid.</param>
374+
/// <param name="options">The options.</param>
375+
/// <param name="timeout">The timeout.</param>
376+
/// <param name="function">The function.</param>
377+
/// <returns></returns>
378+
public static IAsyncResult Update(OAuthTokens tokens, decimal userid, UpdateFriendshipOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterRelationship>> function)
379+
{
380+
Func<OAuthTokens, decimal, UpdateFriendshipOptions, TwitterResponse<TwitterRelationship>> methodToCall = TwitterFriendship.Update;
381+
382+
return methodToCall.BeginInvoke(
383+
tokens,
384+
userid,
385+
options,
386+
result =>
387+
{
388+
result.AsyncWaitHandle.WaitOne(timeout);
389+
try
390+
{
391+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
392+
}
393+
catch (Exception ex)
394+
{
395+
function(new TwitterAsyncResponse<TwitterRelationship>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
396+
}
397+
},
398+
null);
399+
}
400+
401+
/// <summary>
402+
/// Returns the numeric IDs for every user the specified user is does not want to see retweets from.
403+
/// </summary>
404+
/// <param name="tokens">The tokens.</param>
405+
/// <param name="userid">The userid.</param>
406+
/// <param name="timeout">The timeout.</param>
407+
/// <param name="function">The function.</param>
408+
/// <returns></returns>
409+
public static IAsyncResult Update(OAuthTokens tokens, decimal userid, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterRelationship>> function)
410+
{
411+
Func<OAuthTokens, decimal, TwitterResponse<TwitterRelationship>> methodToCall = TwitterFriendship.Update;
412+
413+
return methodToCall.BeginInvoke(
414+
tokens,
415+
userid,
416+
result =>
417+
{
418+
result.AsyncWaitHandle.WaitOne(timeout);
419+
try
420+
{
421+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
422+
}
423+
catch (Exception ex)
424+
{
425+
function(new TwitterAsyncResponse<TwitterRelationship>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
426+
}
427+
},
428+
null);
429+
}
430+
431+
/// <summary>
432+
/// Updates the friendship.
433+
/// </summary>
434+
/// <param name="tokens">The tokens.</param>
435+
/// <param name="screenname">The screenname.</param>
436+
/// <param name="options">The options.</param>
437+
/// <param name="timeout">The timeout.</param>
438+
/// <param name="function">The function.</param>
439+
/// <returns></returns>
440+
public static IAsyncResult Update(OAuthTokens tokens, string screenname, UpdateFriendshipOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterRelationship>> function)
441+
{
442+
Func<OAuthTokens, string, UpdateFriendshipOptions, TwitterResponse<TwitterRelationship>> methodToCall = TwitterFriendship.Update;
443+
444+
return methodToCall.BeginInvoke(
445+
tokens,
446+
screenname,
447+
options,
448+
result =>
449+
{
450+
result.AsyncWaitHandle.WaitOne(timeout);
451+
try
452+
{
453+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
454+
}
455+
catch (Exception ex)
456+
{
457+
function(new TwitterAsyncResponse<TwitterRelationship>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
458+
}
459+
},
460+
null);
461+
}
462+
463+
/// <summary>
464+
/// Returns the numeric IDs for every user the specified user is does not want to see retweets from.
465+
/// </summary>
466+
/// <param name="tokens">The tokens.</param>
467+
/// <param name="screenname">The screenname.</param>
468+
/// <param name="timeout">The timeout.</param>
469+
/// <param name="function">The function.</param>
470+
/// <returns></returns>
471+
public static IAsyncResult Update(OAuthTokens tokens, string screenname, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterRelationship>> function)
472+
{
473+
Func<OAuthTokens, string, TwitterResponse<TwitterRelationship>> methodToCall = TwitterFriendship.Update;
474+
475+
return methodToCall.BeginInvoke(
476+
tokens,
477+
screenname,
478+
result =>
479+
{
480+
result.AsyncWaitHandle.WaitOne(timeout);
481+
try
482+
{
483+
function(methodToCall.EndInvoke(result).ToAsyncResponse());
484+
}
485+
catch (Exception ex)
486+
{
487+
function(new TwitterAsyncResponse<TwitterRelationship>() { Result = RequestResult.Unknown, ExceptionThrown = ex });
488+
}
489+
},
490+
null);
491+
}
309492
}
310493
}

0 commit comments

Comments
 (0)