This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
messages.getHistory, newsfeed.getBanned, ContentId, stuff
- Loading branch information
Showing
29 changed files
with
468 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
using System; | ||
using kasthack.vksharp.DataTypes.EntityFragments; | ||
using kasthack.vksharp.DataTypes.Enums; | ||
using kasthack.vksharp.DataTypes.Interfaces; | ||
|
||
namespace kasthack.vksharp.DataTypes.Entities { | ||
public class Comment { | ||
public long Id{ get; set; } | ||
public class Comment : OwnedEntity { | ||
public int PostId { get; set; } | ||
public int FromId{ get; set; } | ||
|
||
public DateTimeOffset Date { get; set; } | ||
public string Text { get; set; } | ||
public int ReplyToUser{ get; set; } | ||
public long ReplyToComment { get; set; } | ||
public Attachment[] Attachments { get; set; } | ||
public CommentLikes Likes { get; set; } | ||
public int ReplyToUser { get; set; } | ||
public long ReplyToComment { get; set; } | ||
public static implicit operator ContentId(Comment comment)=>new ObjectContentId( ContentType.WallReply, comment.Id, comment.OwnerId ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
using kasthack.vksharp.DataTypes.Interfaces; | ||
using kasthack.vksharp.DataTypes.Enums; | ||
using kasthack.vksharp.DataTypes.Interfaces; | ||
|
||
namespace kasthack.vksharp.DataTypes.Entities { | ||
public class PostedPhoto : OwnedEntity { | ||
public string Photo130 { get; set; } | ||
public string Photo640 { get; set; } | ||
public static implicit operator ObjectContentId(PostedPhoto photo)=>new ObjectContentId( ContentType.PostedPhoto, photo.Id, photo.OwnerId ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...vksharp/DataTypes/Enums/AttachmentType.cs → ...ck.vksharp/DataTypes/Enums/ContentType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.