School Commit Init
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace District_3_App.Enitities.Mocks
|
||||
{
|
||||
public class MockPhotoPost : MockPost
|
||||
{
|
||||
private string description;
|
||||
private string filePath;
|
||||
|
||||
public MockPhotoPost(object user, Dictionary<int, List<object>> reactions, List<object> mentionedUsers, string title, string description, string photo)
|
||||
: base(user, reactions, mentionedUsers, title)
|
||||
{
|
||||
this.description = description;
|
||||
this.filePath = photo;
|
||||
}
|
||||
|
||||
public string GetPhoto()
|
||||
{
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public string GetDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace District_3_App.Enitities.Mocks
|
||||
{
|
||||
public class MockPost
|
||||
{
|
||||
private Guid postId;
|
||||
private object user;
|
||||
private Dictionary<int, List<object>> reactions;
|
||||
private List<object> mentionedUsers;
|
||||
private string title;
|
||||
|
||||
public MockPost(object user, Dictionary<int, List<object>> reactions, List<object> mentionedUsers, string title)
|
||||
{
|
||||
this.postId = Guid.NewGuid();
|
||||
this.user = user;
|
||||
this.reactions = reactions;
|
||||
this.mentionedUsers = mentionedUsers;
|
||||
this.title = title;
|
||||
}
|
||||
public Guid GetPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
public void SetPostId(Guid postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user