~ubuntu-branches/ubuntu/jaunty/gnome-do-plugins/jaunty-proposed

« back to all changes in this revision

Viewing changes to Microblogging/src/Twitterizer/Twitterizer.Framework/DataTransferObjects/TwitterStatusCollection.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers, Christopher James Halse Rogers, Iain Lane
  • Date: 2009-02-05 16:58:51 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205165851-bku2c9rmrny93b31
Tags: 0.8.0.2+dfsg-1~ubuntu1
[ Christopher James Halse Rogers ]
* New upstream version
* debian/control:
  + gnome-sharp2 transition (LP: #314516)
  + Add banshee build-dep
  + Drop monodevelop build-dep; upstream uses mautil rather than mdtool now
  + Bump required gnome-do version in Build-Dep & Depends.
  + Suggest Banshee
* debian/copyright:
  + Refresh for new upstream version; new plugins added.
* debian/rules:
  + Rework clean target to simply delete files generated by autoreconf,
    rather than trying to preserve them.
  + Remove XDG_CONFIG_DIR hack needed for mdtool
* debian/patches/01_firefox_iceweasel_rename:
  + Refresh for new upsteam changes.
  + Extend to also make the Firefox bookmark plugin index iceweasel bookmarks

[ Iain Lane ]
* Tag pkg-cli-apps SVN revision into Jaunty, to get in before Feature
  Freeze. Should be a sync after the next Debian upload.
* debian/control: Add ${misc:Depends} build-dep 
* debian/rules: Do not fail if configure is missing (e.g. clean twice in a
  row) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Twitterizer library <http://code.google.com/p/twitterizer/>
 
3
 *
 
4
 * Copyright (c) 2008, Patrick "Ricky" Smith <ricky@digitally-born.com>
 
5
 * All rights reserved.
 
6
 * 
 
7
 * Redistribution and use in source and binary forms, with or without modification, are 
 
8
 * permitted provided that the following conditions are met:
 
9
 *
 
10
 * - Redistributions of source code must retain the above copyright notice, this list 
 
11
 *   of conditions and the following disclaimer.
 
12
 * - Redistributions in binary form must reproduce the above copyright notice, this list 
 
13
 *   of conditions and the following disclaimer in the documentation and/or other 
 
14
 *   materials provided with the distribution.
 
15
 * - Neither the name of the Twitterizer nor the names of its contributors may be 
 
16
 *   used to endorse or promote products derived from this software without specific 
 
17
 *   prior written permission.
 
18
 *
 
19
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
 
20
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
 
21
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
 
22
 * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
 
23
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
 
24
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
 
25
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 
26
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 
27
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 
28
 * POSSIBILITY OF SUCH DAMAGE.
 
29
 */
 
30
using System.Collections;
 
31
 
 
32
namespace Twitterizer.Framework
 
33
{
 
34
    public class TwitterStatusCollection : CollectionBase
 
35
    {
 
36
        public TwitterStatus this[int index]
 
37
        {
 
38
            get
 
39
            {
 
40
                return ((TwitterStatus)List[index]);
 
41
            }
 
42
            set
 
43
            {
 
44
                List[index] = value;
 
45
            }
 
46
        }
 
47
 
 
48
 
 
49
        public int Add(TwitterStatus value)
 
50
        {
 
51
            return (List.Add(value));
 
52
        }
 
53
 
 
54
        public int IndexOf(TwitterStatus value)
 
55
        {
 
56
            return (List.IndexOf(value));
 
57
        }
 
58
 
 
59
        public void Insert(int index, TwitterStatus value)
 
60
        {
 
61
            List.Insert(index, value);
 
62
        }
 
63
 
 
64
        public void Remove(TwitterStatus value)
 
65
        {
 
66
            List.Remove(value);
 
67
        }
 
68
 
 
69
        public bool Contains(TwitterStatus value)
 
70
        {
 
71
            // If value is not of type Int16, this will return false.
 
72
            return (List.Contains(value));
 
73
        }
 
74
 
 
75
 
 
76
    }
 
77
}