コード例 #1
0
ファイル: messageentry.cs プロジェクト: Zelxin/RPiKeg
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public MessageEntry() : base() {
            Tracing.TraceMsg("Created MessageEntry");
            Description d = new Description();

            this.AddExtension(d);
            Categories.Add(MESSAGE_CATEGORY);
        }
コード例 #2
0
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public PlaylistEntry()
            : base() {
            Tracing.TraceMsg("Created PlaylistEntry");

            if (this.ProtocolMajor == 1) {
                Description d = new Description();
                this.AddExtension(d);
            }

            this.AddExtension(new Position());
            Categories.Add(PLAYLIST_CATEGORY);
        }
コード例 #3
0
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public PlaylistsEntry() : base() {
            Tracing.TraceMsg("Created PlaylistsEntry");

            if (this.ProtocolMajor == 1) {
                Description d = new Description();
                FeedLink f = new FeedLink();

                this.AddExtension(d);
                this.AddExtension(f);
            }

            CountHint c = new CountHint();
            this.AddExtension(c);
            this.AddExtension(new Private());

            Categories.Add(PLAYLISTS_CATEGORY);
        }
コード例 #4
0
 public void DescriptionConstructorTest()
 {
     string initValue = "abcdefg";
     Description target = new Description(initValue);
     Assert.AreEqual(target.Value, initValue, "object should have same value after construction");
 }
コード例 #5
0
 public void DescriptionConstructorTest1()
 {
     Description target = new Description();
     Assert.AreEqual(target.Value, null, "object value should be null after construction");
 }