From 810417ef86957a6867f2b4682c4f396c3e095534 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Tue, 6 May 2014 01:59:34 +0900 Subject: [PATCH] =?utf8?q?TwitterDataModel=E5=86=85=E3=81=AE=E4=BD=BF?= =?utf8?q?=E3=82=8F=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E3=82=AF?= =?utf8?q?=E3=83=A9=E3=82=B9=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween/Api/TwitterDataModel.cs | 136 -------------------------------------- OpenTween/OpenTween.csproj | 1 - 2 files changed, 137 deletions(-) delete mode 100644 OpenTween/Api/TwitterDataModel.cs diff --git a/OpenTween/Api/TwitterDataModel.cs b/OpenTween/Api/TwitterDataModel.cs deleted file mode 100644 index b2c7ca07..00000000 --- a/OpenTween/Api/TwitterDataModel.cs +++ /dev/null @@ -1,136 +0,0 @@ -// OpenTween - Client of Twitter -// Copyright (c) 2007-2011 kiri_feather (@kiri_feather) -// (c) 2008-2011 Moz (@syo68k) -// (c) 2008-2011 takeshik (@takeshik) -// (c) 2010-2011 anis774 (@anis774) -// (c) 2010-2011 fantasticswallow (@f_swallow) -// (c) 2011 Egtra (@egtra) -// (c) 2013 kim_upsilon (@kim_upsilon) -// All rights reserved. -// -// This file is part of OpenTween. -// -// This program is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 3 of the License, or (at your option) -// any later version. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -// for more details. -// -// You should have received a copy of the GNU General Public License along -// with this program. If not, see , or write to -// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, -// Boston, MA 02110-1301, USA. - -using System; -using System.Runtime.Serialization; -using System.Collections.Generic; -using OpenTween.Api; - -namespace OpenTween.Api -{ - public class TwitterDataModel - { - [DataContract] - public class Annotations - { - [DataMember(Name = "ConversationRole", IsRequired = false)] public string ConversationRole; - [DataMember(Name = "FromUser", IsRequired = false)] public string FromUser; - } - - [DataContract] - public class Friendsevent - { - [DataMember(Name = "friends")] public Int64[] Friends; - } - - [DataContract] - public class DeletedStatusContent - { - [DataMember(Name = "id")] public Int64 Id; - [DataMember(Name = "user_id")] public Int64 UserId; - } - - [DataContract] - public class DeletedStatus - { - [DataMember(Name = "status")] public DeletedStatusContent Status; - } - - [DataContract] - public class DeleteEvent - { - [DataMember(Name = "delete")] public DeletedStatus Event; - } - - [DataContract] - public class DeletedDirectmessage - { - [DataMember(Name = "direct_message")] public DeletedStatusContent Directmessage; - } - - [DataContract] - public class DeleteDirectmessageEvent - { - [DataMember(Name = "delete")] public DeletedDirectmessage Event; - } - [DataContract] - public class DirectmessageEvent - { - [DataMember(Name = "direct_message")] public TwitterDirectMessage Directmessage; - } - - [DataContract] - public class TrackCount - { - [DataMember(Name = "track")] public int Track; - } - - [DataContract] - public class LimitEvent - { - [DataMember(Name = "limit")] public TrackCount Limit; - } - - [DataContract] - public class RelatedTweet - { - [DataMember(Name = "annotations")] public Annotations Annotations; - [DataMember(Name = "kind")] public string Kind; - [DataMember(Name = "score")] public double Score; - [DataMember(Name = "value")] public TwitterStatus Status; - } - - [DataContract] - public class RelatedResult - { - [DataMember(Name = "annotations")] public Annotations Annotations; - [DataMember(Name = "groupName")] public string GroupName; - [DataMember(Name = "resultType")] public string ResultType; - [DataMember(Name = "results")] public RelatedTweet[] Results; - [DataMember(Name = "score")] public double Score; - } - - [DataContract] - public class RateLimitStatus - { - [DataMember(Name = "reset_time_in_seconds")] public int ResetTimeInSeconds; - [DataMember(Name = "remaining_hits")] public int RemainingHits; - [DataMember(Name = "reset_time")] public string ResetTime; - [DataMember(Name = "hourly_limit")] public int HourlyLimit; - [DataMember(Name = "photos")] public MediaRateLimitStatus Photos; - } - - [DataContract] - public class MediaRateLimitStatus - { - [DataMember(Name = "reset_time_in_seconds")] public int RestTimeInSeconds; - [DataMember(Name = "remaining_hits")] public int RemainingHits; - [DataMember(Name = "reset_time")] public string ResetTime; - [DataMember(Name = "daily_limit")] public int DailyLimit; - } - } -} diff --git a/OpenTween/OpenTween.csproj b/OpenTween/OpenTween.csproj index 263afd76..83c782de 100644 --- a/OpenTween/OpenTween.csproj +++ b/OpenTween/OpenTween.csproj @@ -157,7 +157,6 @@ - Component -- 2.11.0