123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using GxPress.EnumConst;
- namespace GxPress.Result
- {
-
-
-
- public class ContentJsonData
- {
-
-
-
- public string Author { get; set; }
-
-
-
- public string TextType { get; set; }
-
-
-
- public int Id { get; set; }
-
-
-
- public string File { get; set; }
-
-
-
- public string Text { get; set; }
-
-
-
- public int Type { get; set; }
-
-
-
-
- public int TypeValue { get => SetType((TextEditorTypeConst)Type); set => SetType((TextEditorTypeConst)Type); }
-
-
-
-
- public int SourceUserId { get; set; }
-
-
-
-
-
- public int SetType(TextEditorTypeConst type)
- {
- if (type == TextEditorTypeConst.Image)
- return OldTextEditorTypeConst.Image.GetHashCode();
- if (type == TextEditorTypeConst.File)
- return OldTextEditorTypeConst.File.GetHashCode();
- if (type == TextEditorTypeConst.Article)
- return OldTextEditorTypeConst.Article.GetHashCode();
- if (type == TextEditorTypeConst.Topic)
- return OldTextEditorTypeConst.Topic.GetHashCode();
- if (type == TextEditorTypeConst.Collect)
- return OldTextEditorTypeConst.Collect.GetHashCode();
- if (type == TextEditorTypeConst.Note)
- return OldTextEditorTypeConst.Note.GetHashCode();
- if (type == TextEditorTypeConst.TopicNote)
- return OldTextEditorTypeConst.Note.GetHashCode();
- if (type == TextEditorTypeConst.Missive)
- return OldTextEditorTypeConst.Missive.GetHashCode();
- if (type == TextEditorTypeConst.Group)
- return OldTextEditorTypeConst.Group.GetHashCode();
- return type.GetHashCode();
- }
-
-
-
- public string Content { get; set; }
-
-
-
- public string Title { get; set; }
-
-
-
- public string FileName { get; set; }
-
-
-
- public DateTime? CreatedData { get; set; }
-
-
-
- public List<string> ArticleImgUrl { get; set; }
-
-
-
- public int ReadCount { get; set; }
-
-
-
- public int FileCount { get; set; }
-
-
-
-
- public string NickName { get; set; }
- }
-
-
-
- public class CollectionContentJsonData
- {
-
-
-
- public string Author { get; set; }
-
-
-
- public string TextType { get; set; }
-
-
-
- public int Id { get; set; }
-
-
-
- public string File { get; set; }
-
-
-
- public string Text { get; set; }
-
-
-
- public int Type { get; set; }
-
-
-
-
- public int TypeValue { get => SetType((TextEditorTypeConst)Type); set => SetType((TextEditorTypeConst)Type); }
-
-
-
-
-
- public int SetType(TextEditorTypeConst type)
- {
- if (type == TextEditorTypeConst.File)
- return OldTextEditorTypeConst.File.GetHashCode();
- if (type == TextEditorTypeConst.Image)
- return OldTextEditorTypeConst.Image.GetHashCode();
- if (type == TextEditorTypeConst.Article)
- return OldTextEditorTypeConst.Article.GetHashCode();
- if (type == TextEditorTypeConst.Topic)
- return OldTextEditorTypeConst.Topic.GetHashCode();
- if (type == TextEditorTypeConst.Collect)
- return OldTextEditorTypeConst.Collect.GetHashCode();
- if (type == TextEditorTypeConst.Note)
- return OldTextEditorTypeConst.Note.GetHashCode();
- if (type == TextEditorTypeConst.Missive)
- return OldTextEditorTypeConst.Missive.GetHashCode();
- if (type == TextEditorTypeConst.Group)
- return OldTextEditorTypeConst.Group.GetHashCode();
- return type.GetHashCode();
- }
-
-
-
- public string Content { get; set; }
-
-
-
- public string Title { get; set; }
-
-
-
- public string FileName { get; set; }
-
-
-
- public DateTime? CreatedData { get; set; }
-
-
-
- public List<string> ArticleImgUrl { get; set; }
-
-
-
- public int ReadCount { get; set; }
-
-
-
- public int FileCount { get; set; }
-
-
-
- public CollectionContentJsonData Data { get; set; }
-
-
-
- public string Name { get; set; }
-
-
-
- public string AvatarUrl { get; set; }
-
-
-
-
- public string NickName { get; set; }
-
-
-
-
- public int MissiveType { get; set; }
-
-
-
-
- public bool IsGroup { get; set; }
-
-
-
-
- public int GroupId { get; set; }
-
-
-
-
- public string GroupName { get; set; }
-
-
-
-
- public int FileSize { get; set; }
-
-
-
-
- public string MinFile { get; set; }
-
-
-
-
- public int SourceUserId { get; set; }
- }
- }
|