├── HomeTimeline.png
├── SharpTwitter.suo
├── .gitignore
├── ConnectDialog.png
├── SharpTwitter
├── res
│ ├── star.png
│ ├── retweet.png
│ └── twitter_newbird_boxed_whiteonblue.png
├── lib
│ └── Twitterizer2-2.3.1
│ │ ├── Twitterizer2.dll
│ │ ├── Twitterizer2.pdb
│ │ ├── Newtonsoft.Json.dll
│ │ ├── Newtonsoft.Json.pdb
│ │ ├── Json.NET.license.txt
│ │ ├── Twitterizer2.license.txt
│ │ └── GettingStarted.txt
├── App.xaml
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── SharpTwitter.csproj.user
├── app.config
├── ConnectDialog.xaml
├── ConnectDialog.xaml.cs
├── MainWindow.xaml
├── SharpTwitter.csproj
├── App.xaml.cs
└── MainWindow.xaml.cs
├── SharpTwitter.sln
└── index.html
/HomeTimeline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/HomeTimeline.png
--------------------------------------------------------------------------------
/SharpTwitter.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter.suo
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | SharpTwitter/AppConstants.cs
3 | SharpTwitter/bin/
4 | SharpTwitter/obj/
--------------------------------------------------------------------------------
/ConnectDialog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/ConnectDialog.png
--------------------------------------------------------------------------------
/SharpTwitter/res/star.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/res/star.png
--------------------------------------------------------------------------------
/SharpTwitter/res/retweet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/res/retweet.png
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Twitterizer2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/lib/Twitterizer2-2.3.1/Twitterizer2.dll
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Twitterizer2.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/lib/Twitterizer2-2.3.1/Twitterizer2.pdb
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/lib/Twitterizer2-2.3.1/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Newtonsoft.Json.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/lib/Twitterizer2-2.3.1/Newtonsoft.Json.pdb
--------------------------------------------------------------------------------
/SharpTwitter/res/twitter_newbird_boxed_whiteonblue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pangratz/scharfer-vogel/master/SharpTwitter/res/twitter_newbird_boxed_whiteonblue.png
--------------------------------------------------------------------------------
/SharpTwitter/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SharpTwitter/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SharpTwitter/SharpTwitter.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | publish\
5 |
6 |
7 |
8 |
9 |
10 | de-DE
11 | false
12 | ShowAllFiles
13 |
14 |
15 | C:\Users\clemens\Documents\My Dropbox\c-sharp-project\SharpTwitter\SharpTwitter\lib\Twitterizer2-2.3\
16 |
17 |
--------------------------------------------------------------------------------
/SharpTwitter.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpTwitter", "SharpTwitter\SharpTwitter.csproj", "{7D71EC53-8424-410D-A1BF-FA094B222AB8}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|x86 = Debug|x86
9 | Release|x86 = Release|x86
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {7D71EC53-8424-410D-A1BF-FA094B222AB8}.Debug|x86.ActiveCfg = Debug|x86
13 | {7D71EC53-8424-410D-A1BF-FA094B222AB8}.Debug|x86.Build.0 = Debug|x86
14 | {7D71EC53-8424-410D-A1BF-FA094B222AB8}.Release|x86.ActiveCfg = Release|x86
15 | {7D71EC53-8424-410D-A1BF-FA094B222AB8}.Release|x86.Build.0 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/SharpTwitter/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Json.NET.license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2007 James Newton-King
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/SharpTwitter/ConnectDialog.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | Please go to the url and enter the shown PIN into the field bellow: Login to Twitter
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SharpTwitter/lib/Twitterizer2-2.3.1/Twitterizer2.license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010, Patrick "Ricky" Smith
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5 |
6 | - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7 |
8 | - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in
9 | the documentation and/or other materials provided with the distribution.
10 |
11 | - Neither the name Twitterizer nor the names of its contributors may be used to endorse or promote products derived from
12 | this software without specific prior written permission.
13 |
14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
16 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
17 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
18 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/SharpTwitter/ConnectDialog.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Shapes;
13 |
14 | namespace SharpTwitter
15 | {
16 | ///
17 | /// Interaktionslogik für ConnectDialog.xaml
18 | ///
19 | public partial class ConnectDialog : Window
20 | {
21 |
22 | public ConnectDialog(string uri)
23 | {
24 | InitializeComponent();
25 | twitterLoginUrl.NavigateUri = new Uri(uri);
26 | }
27 |
28 | private void connectClicked(object sender, RoutedEventArgs e)
29 | {
30 | // get the entered pin
31 | // get the token and token secret
32 | // save token and secret to properties
33 | // re-connect to twitter
34 | Close();
35 | }
36 |
37 | public string GetPinCode()
38 | {
39 | return pinTextBox.Text;
40 | }
41 |
42 | private void twitterLoginUrlClicked(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
43 | {
44 | // go to the url
45 | Hyperlink source = sender as Hyperlink;
46 | if (source != null)
47 | {
48 | System.Diagnostics.Process.Start(source.NavigateUri.ToString());
49 | }
50 | }
51 |
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/SharpTwitter/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SharpTwitter.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("")]
29 | public string token {
30 | get {
31 | return ((string)(this["token"]));
32 | }
33 | set {
34 | this["token"] = value;
35 | }
36 | }
37 |
38 | [global::System.Configuration.UserScopedSettingAttribute()]
39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
40 | [global::System.Configuration.DefaultSettingValueAttribute("")]
41 | public string tokenSecret {
42 | get {
43 | return ((string)(this["tokenSecret"]));
44 | }
45 | set {
46 | this["tokenSecret"] = value;
47 | }
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | SharpTwitter
4 |
5 |
6 |
SharpTwitter
7 |
SharpTwitter is a Twitter client implemented in C# - which is already encoded in the project's name. The Windows Presentation Foundation (WPF) is used for visualizing the available tasks in this client. Besides WPF the .NET Framework in version 4 is used.
8 |
9 |
The main purpose of creating SharpTwitter was to get in touch with C# and learn the
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
Features
18 |
SharpTwitter only provides a subset of all the features which are available at Twitter, but the most important features are available:
19 |
20 |
21 |
Login via OAuth to your Twitter account
22 |
Showing the Home timeline of your account
23 |
Show latest Tweets of an user you follow
24 |
Load all newer Tweets - if there are some available
25 |
Mark/Unmark a Tweet as your favourite
26 |
ReTweet a Tweet of an user
27 |
Reply to a Tweet of an user
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
Screenshots
39 |
40 |
In the screenshot below the login dialog where the user grants SharpTwitter access to the users account, is shown.
41 |
42 |
43 |
44 |
45 |
A screenshot of the user's home timeline is shown below.
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
Installation
56 |
To install and use SharpTwitter, you have to do the following things: