C# Class reExp.Models.Model

Show file Open project: ren85/rextester_win

Public Properties

Property Type Description
_cache_lock object

Public Methods

Method Description
CancelVote ( string guid ) : bool
Comment_Last_Id ( int code_id ) : int?
DeleteCode ( string guid ) : void
DeleteCodeWallItem ( int id ) : bool
DeleteComment ( Comment comment ) : void
DeleteLiveCode ( string guid ) : void
DeleteUserItem ( int id ) : bool
DeleteUserWallItem ( int id ) : bool
GeRelated ( int code_id ) : List
GetCode ( string guid, bool incrementViews = true ) : Code
GetCodeRights ( string guid ) : byte[]
GetCodeWithInfo ( string guid ) : Code
GetComment ( int Comment_ID ) : Comment
GetComments ( string guid ) : List
GetCurrentUserId ( string name ) : int?
GetLangCounter ( ) : long>.Dictionary
GetLangLogStats ( int lang, System.DateTime from, System.DateTime to, string search, int api, int date_range ) : Dictionary>
GetLiveCode ( string guid ) : Code
GetLog ( int lang, System.DateTime from, System.DateTime to, string search, int api, int date_range, int &total ) : List
GetLogEntry ( int id ) : LogEntry
GetLogStats ( System.DateTime from, System.DateTime to, string search, int api, int date_range, int &total ) : Dictionary>
GetNotifications ( ) : List
GetNotificationsCount ( ) : int
GetRegex ( string guid ) : Regexpr
GetRegexReplace ( string guid ) : RegexReplace
GetSubscriptions ( ) : List
GetUserByGuid ( string guid ) : Author
GetUserIdByCodeId ( int code_id ) : int?
GetUserProfile ( ) : UserProfile
GetUserWallCodesTotal ( string wall_id ) : int
GetUserWallId ( ) : int?
GetUserWallName ( string wall_id ) : string
GetUserWallsTotal ( ) : int
GetUsersItems ( int userId, int page ) : List
GetUsersTotal ( int userId ) : int
GetUsersWallCodes ( string wall_id, int page, int sort ) : List
GetUsersWalls ( int page ) : List
GetVersions ( string CodeGuid ) : List
GetWallsCode ( int page, int sort, int lang ) : List
GetWallsTotal ( int lang ) : int
HowOneVoted ( string guid ) : bool?
IncrementLangCounter ( string data, string input, string compiler_args, string result, int lang, bool is_api ) : void
InitLogCache ( ) : void
IsCurrentUserAdmin ( string name ) : bool
IsGoogleAccountCreated ( string emailHash ) : string
IsLive ( string guid ) : bool
IsUserSubscribed ( int wall_id ) : bool
IsWallsOwner ( string wall_id ) : bool
LogCodeData ( string data, string input, string compiler_args, string result, int lang ) : void
LogInfo ( string info, string type ) : void
LogRun ( string data, string input, string compiler_args, string result, int lang, bool is_api, string log_path, bool is_success ) : void
LoginUser ( string name, string password ) : User
MakeLiveCode ( string guid, string version_token ) : void
RegisterGoogleUser ( string name, string emailHash ) : Registering
RegisterUser ( string name, string password ) : Registering
SaveCode ( RundotnetData data, bool wall = false, bool live = false, bool personal = false ) : string
SaveComment ( Comment comment ) : void
SaveRegex ( RegexData data ) : string
SaveRegexReplace ( RegexData data ) : string
SaveUserProfile ( LanguagesEnum language_choice, EditorsEnum editor_choice ) : void
Subscribe ( int wall_id ) : bool?
UpdateCode ( RundotnetData data ) : void
UpdateComment ( Comment comment ) : void
UpdateLiveCache ( string code, string chat, string guid ) : void
Vote ( string guid, bool up ) : bool

Private Methods

Method Description
GetLogCacheItem ( int lang, System.DateTime time, int success ) : byte[]
GetLogCacheValue ( byte item ) : object[]
GetMentions ( string text ) : HashSet
WorkOnDates ( ILinqDbQueryable res, int range, System.DateTime from, System.DateTime to ) : void

Method Details

CancelVote() public static method

public static CancelVote ( string guid ) : bool
guid string
return bool

Comment_Last_Id() public static method

public static Comment_Last_Id ( int code_id ) : int?
code_id int
return int?

DeleteCode() public static method

public static DeleteCode ( string guid ) : void
guid string
return void

DeleteCodeWallItem() public static method

public static DeleteCodeWallItem ( int id ) : bool
id int
return bool

DeleteComment() public static method

public static DeleteComment ( Comment comment ) : void
comment Comment
return void

DeleteLiveCode() public static method

public static DeleteLiveCode ( string guid ) : void
guid string
return void

DeleteUserItem() public static method

public static DeleteUserItem ( int id ) : bool
id int
return bool

DeleteUserWallItem() public static method

public static DeleteUserWallItem ( int id ) : bool
id int
return bool

GeRelated() public static method

public static GeRelated ( int code_id ) : List
code_id int
return List

GetCode() public static method

public static GetCode ( string guid, bool incrementViews = true ) : Code
guid string
incrementViews bool
return Code

GetCodeRights() public static method

public static GetCodeRights ( string guid ) : byte[]
guid string
return byte[]

GetCodeWithInfo() public static method

public static GetCodeWithInfo ( string guid ) : Code
guid string
return Code

GetComment() public static method

public static GetComment ( int Comment_ID ) : Comment
Comment_ID int
return Comment

GetComments() public static method

public static GetComments ( string guid ) : List
guid string
return List

GetCurrentUserId() public static method

public static GetCurrentUserId ( string name ) : int?
name string
return int?

GetLangCounter() public static method

public static GetLangCounter ( ) : long>.Dictionary
return long>.Dictionary

GetLangLogStats() public static method

public static GetLangLogStats ( int lang, System.DateTime from, System.DateTime to, string search, int api, int date_range ) : Dictionary>
lang int
from System.DateTime
to System.DateTime
search string
api int
date_range int
return Dictionary>

GetLiveCode() public static method

public static GetLiveCode ( string guid ) : Code
guid string
return Code

GetLog() public static method

public static GetLog ( int lang, System.DateTime from, System.DateTime to, string search, int api, int date_range, int &total ) : List
lang int
from System.DateTime
to System.DateTime
search string
api int
date_range int
total int
return List

GetLogEntry() public static method

public static GetLogEntry ( int id ) : LogEntry
id int
return LogEntry

GetLogStats() public static method

public static GetLogStats ( System.DateTime from, System.DateTime to, string search, int api, int date_range, int &total ) : Dictionary>
from System.DateTime
to System.DateTime
search string
api int
date_range int
total int
return Dictionary>

GetNotifications() public static method

public static GetNotifications ( ) : List
return List

GetNotificationsCount() public static method

public static GetNotificationsCount ( ) : int
return int

GetRegex() public static method

public static GetRegex ( string guid ) : Regexpr
guid string
return Regexpr

GetRegexReplace() public static method

public static GetRegexReplace ( string guid ) : RegexReplace
guid string
return RegexReplace

GetSubscriptions() public static method

public static GetSubscriptions ( ) : List
return List

GetUserByGuid() public static method

public static GetUserByGuid ( string guid ) : Author
guid string
return Author

GetUserIdByCodeId() public static method

public static GetUserIdByCodeId ( int code_id ) : int?
code_id int
return int?

GetUserProfile() public static method

public static GetUserProfile ( ) : UserProfile
return UserProfile

GetUserWallCodesTotal() public static method

public static GetUserWallCodesTotal ( string wall_id ) : int
wall_id string
return int

GetUserWallId() public static method

public static GetUserWallId ( ) : int?
return int?

GetUserWallName() public static method

public static GetUserWallName ( string wall_id ) : string
wall_id string
return string

GetUserWallsTotal() public static method

public static GetUserWallsTotal ( ) : int
return int

GetUsersItems() public static method

public static GetUsersItems ( int userId, int page ) : List
userId int
page int
return List

GetUsersTotal() public static method

public static GetUsersTotal ( int userId ) : int
userId int
return int

GetUsersWallCodes() public static method

public static GetUsersWallCodes ( string wall_id, int page, int sort ) : List
wall_id string
page int
sort int
return List

GetUsersWalls() public static method

public static GetUsersWalls ( int page ) : List
page int
return List

GetVersions() public static method

public static GetVersions ( string CodeGuid ) : List
CodeGuid string
return List

GetWallsCode() public static method

public static GetWallsCode ( int page, int sort, int lang ) : List
page int
sort int
lang int
return List

GetWallsTotal() public static method

public static GetWallsTotal ( int lang ) : int
lang int
return int

HowOneVoted() public static method

public static HowOneVoted ( string guid ) : bool?
guid string
return bool?

IncrementLangCounter() public static method

public static IncrementLangCounter ( string data, string input, string compiler_args, string result, int lang, bool is_api ) : void
data string
input string
compiler_args string
result string
lang int
is_api bool
return void

InitLogCache() public static method

public static InitLogCache ( ) : void
return void

IsCurrentUserAdmin() public static method

public static IsCurrentUserAdmin ( string name ) : bool
name string
return bool

IsGoogleAccountCreated() public static method

public static IsGoogleAccountCreated ( string emailHash ) : string
emailHash string
return string

IsLive() public static method

public static IsLive ( string guid ) : bool
guid string
return bool

IsUserSubscribed() public static method

public static IsUserSubscribed ( int wall_id ) : bool
wall_id int
return bool

IsWallsOwner() public static method

public static IsWallsOwner ( string wall_id ) : bool
wall_id string
return bool

LogCodeData() public static method

public static LogCodeData ( string data, string input, string compiler_args, string result, int lang ) : void
data string
input string
compiler_args string
result string
lang int
return void

LogInfo() public static method

public static LogInfo ( string info, string type ) : void
info string
type string
return void

LogRun() public static method

public static LogRun ( string data, string input, string compiler_args, string result, int lang, bool is_api, string log_path, bool is_success ) : void
data string
input string
compiler_args string
result string
lang int
is_api bool
log_path string
is_success bool
return void

LoginUser() public static method

public static LoginUser ( string name, string password ) : User
name string
password string
return User

MakeLiveCode() public static method

public static MakeLiveCode ( string guid, string version_token ) : void
guid string
version_token string
return void

RegisterGoogleUser() public static method

public static RegisterGoogleUser ( string name, string emailHash ) : Registering
name string
emailHash string
return Registering

RegisterUser() public static method

public static RegisterUser ( string name, string password ) : Registering
name string
password string
return Registering

SaveCode() public static method

public static SaveCode ( RundotnetData data, bool wall = false, bool live = false, bool personal = false ) : string
data RundotnetData
wall bool
live bool
personal bool
return string

SaveComment() public static method

public static SaveComment ( Comment comment ) : void
comment Comment
return void

SaveRegex() public static method

public static SaveRegex ( RegexData data ) : string
data RegexData
return string

SaveRegexReplace() public static method

public static SaveRegexReplace ( RegexData data ) : string
data RegexData
return string

SaveUserProfile() public static method

public static SaveUserProfile ( LanguagesEnum language_choice, EditorsEnum editor_choice ) : void
language_choice LanguagesEnum
editor_choice EditorsEnum
return void

Subscribe() public static method

public static Subscribe ( int wall_id ) : bool?
wall_id int
return bool?

UpdateCode() public static method

public static UpdateCode ( RundotnetData data ) : void
data RundotnetData
return void

UpdateComment() public static method

public static UpdateComment ( Comment comment ) : void
comment Comment
return void

UpdateLiveCache() public static method

public static UpdateLiveCache ( string code, string chat, string guid ) : void
code string
chat string
guid string
return void

Vote() public static method

public static Vote ( string guid, bool up ) : bool
guid string
up bool
return bool

Property Details

_cache_lock public static property

public static object _cache_lock
return object