コード例 #1
0
 /// <summary>Insert information about an entry to the data structure</summary>
 /// <param name="item_id">the item ID</param>
 /// <param name="type">the <see cref="KDDCupItemType"/> of the item</param>
 /// <param name="album">the album ID if the item is a track or album, -1 otherwise</param>
 /// <param name="artist">the artist ID if the item is a track, an album, or an artist, -1 otherwise</param>
 /// <param name="genres">a (possibly empty or null) list of genre IDs</param>
 public void Insert(int item_id, KDDCupItemType type, int album, int artist, IList <int> genres)
 {
     this.types[item_id]   = type;
     this.albums[item_id]  = album;
     this.artists[item_id] = artist;
     this.genres[item_id]  = genres;
 }
コード例 #2
0
ファイル: KDDCupItems.cs プロジェクト: WisonHuang/MyMediaLite
		/// <summary>Insert information about an entry to the data structure</summary>
		/// <param name="item_id">the item ID</param>
		/// <param name="type">the <see cref="KDDCupItemType"/> of the item</param>
		/// <param name="album">the album ID if the item is a track or album, -1 otherwise</param>
		/// <param name="artist">the artist ID if the item is a track, an album, or an artist, -1 otherwise</param>
		/// <param name="genres">a (possibly empty or null) list of genre IDs</param>
		public void Insert(int item_id, KDDCupItemType type, int album, int artist, IList<int> genres)
		{
			this.types[item_id]   = type;
			this.albums[item_id]  = album;
			this.artists[item_id] = artist;
			this.genres[item_id]  = genres;
		}