コード例 #1
0
 public AddMediaCommand(string name, string imageUrl, PoliticalOrientation politicalOrientation, IReadOnlyCollection <string> feeds)
 {
     Name                 = name;
     ImageUrl             = imageUrl;
     PoliticalOrientation = politicalOrientation;
     Feeds                = feeds;
 }
コード例 #2
0
 public EditMediaCommand(Guid mediaId, string name, string imageUrl, PoliticalOrientation politicalOrientation, IReadOnlyCollection <string> feeds)
 {
     MediaId              = mediaId;
     Name                 = name;
     ImageUrl             = imageUrl;
     PoliticalOrientation = politicalOrientation;
     Feeds                = feeds;
 }
コード例 #3
0
 public void Edit(string name, string imageUrl, PoliticalOrientation politicalOrientation)
 {
     ApplyChange(new MediaEdited(Id, name, imageUrl, politicalOrientation));
 }
コード例 #4
0
 public Media(string name, string imageUrl, PoliticalOrientation politicalOrientation)
 {
     ApplyChange(new MediaAdded(Guid.NewGuid(), name, imageUrl, politicalOrientation));
 }
コード例 #5
0
ファイル: MediaAdded.cs プロジェクト: pierregillon/Sociomedia
 public MediaAdded(Guid id, string name, string imageUrl, PoliticalOrientation politicalOrientation) : base(id)
 {
     Name                 = name;
     ImageUrl             = imageUrl;
     PoliticalOrientation = politicalOrientation;
 }