C# Class Voat.Utilities.UserHelper

Mostra file Open project: voat/voat Class Usage Examples

Public Methods

Method Description
AdultContentEnabled ( string userName ) : bool
BlockSubverse ( string userName, string subverse ) : void
CommentRepliesCount ( string userName ) : int
CustomCssDisabledForUser ( string userName ) : bool
DailyCrossPostingQuotaUsed ( string userName, string url ) : bool
DeleteUser ( string userName ) : bool
GetUserRegistrationDateTime ( string userName ) : System.DateTime
HasAvatar ( string userName ) : string
IsUserBannedFromSubverse ( string userName, string subverseName ) : bool
IsUserBlockingSubverse ( string userName, string subverse ) : bool
IsUserCommentVotingMeanie ( string userName ) : bool
IsUserGloballyBanned ( string userName ) : bool
IsUserPartner ( string userName ) : bool
IsUserSetOwner ( string userName, int setId ) : bool
IsUserSetSubscriber ( string userName, int setId ) : bool
IsUserSubmissionVotingMeanie ( string userName ) : bool
IsUserSubscribedToSet ( string userName, string setName ) : bool
IsUserSubverseAdmin ( string userName, string subverse ) : bool
IsUserSubverseModerator ( string userName, string subverse ) : bool
IsUserSubverseSubscriber ( string userName, string subverse ) : bool
LinksInNewWindow ( string userName ) : bool
OriginalUsername ( string userName ) : string
PostRepliesCount ( string userName ) : int
PrivateMessageCount ( string userName ) : int
PublicSubscriptionsEnabled ( string userName ) : bool
SetUserStylePreferenceCookie ( string theme ) : void
SetsSubscriptionCount ( string userName ) : int
SubscribeToSet ( string userName, int setId ) : void
SubscribeToSubverse ( string userName, string subverse ) : void
SubscriptionCount ( string userName ) : int
Topmenu_From_Subscriptions ( string userName ) : bool
TotalVotesUsedInPast24Hours ( string userName ) : int
UnSubscribeFromSet ( string userName, int setId ) : void
UnSubscribeFromSubverse ( string userName, string subverse ) : void
UnreadCommentRepliesCount ( string userName ) : int
UnreadPostRepliesCount ( string userName ) : int
UnreadPrivateMessagesCount ( string userName ) : int
UnreadTotalNotificationsCount ( string userName ) : int
UserBadges ( string userName ) : List
UserDailyCommentPostingQuotaForNegativeScoreUsed ( string userName ) : bool
UserDailyGlobalPostingQuotaUsed ( string userName ) : bool
UserDailyPostingQuotaForNegativeScoreUsed ( string userName ) : bool
UserDailyPostingQuotaForSubUsed ( string userName, string subverse ) : bool
UserExists ( string userName ) : bool
UserHasNewMessages ( string userName ) : bool
UserHourlyGlobalPostingQuotaUsed ( string userName ) : bool
UserHourlyPostingQuotaForSubUsed ( string userName, string subverse ) : bool
UserIpAddress ( System.Web.HttpRequestBase request ) : string
UserShortbio ( string userName ) : string
UserStatsModel ( string userName ) : Voat.Models.UserStatsModel
UserStylePreference ( string userName ) : string
UserSubscriptions ( string userName ) : List

Private Methods

Method Description
GetUserPreferences ( string userName ) : Voat.Data.Models.UserPreference

Method Details

AdultContentEnabled() public static method

public static AdultContentEnabled ( string userName ) : bool
userName string
return bool

BlockSubverse() public static method

public static BlockSubverse ( string userName, string subverse ) : void
userName string
subverse string
return void

CommentRepliesCount() public static method

public static CommentRepliesCount ( string userName ) : int
userName string
return int

CustomCssDisabledForUser() public static method

public static CustomCssDisabledForUser ( string userName ) : bool
userName string
return bool

DailyCrossPostingQuotaUsed() public static method

public static DailyCrossPostingQuotaUsed ( string userName, string url ) : bool
userName string
url string
return bool

DeleteUser() public static method

public static DeleteUser ( string userName ) : bool
userName string
return bool

GetUserRegistrationDateTime() public static method

public static GetUserRegistrationDateTime ( string userName ) : System.DateTime
userName string
return System.DateTime

HasAvatar() public static method

public static HasAvatar ( string userName ) : string
userName string
return string

IsUserBannedFromSubverse() public static method

public static IsUserBannedFromSubverse ( string userName, string subverseName ) : bool
userName string
subverseName string
return bool

IsUserBlockingSubverse() public static method

public static IsUserBlockingSubverse ( string userName, string subverse ) : bool
userName string
subverse string
return bool

IsUserCommentVotingMeanie() public static method

public static IsUserCommentVotingMeanie ( string userName ) : bool
userName string
return bool

IsUserGloballyBanned() public static method

public static IsUserGloballyBanned ( string userName ) : bool
userName string
return bool

IsUserPartner() public static method

public static IsUserPartner ( string userName ) : bool
userName string
return bool

IsUserSetOwner() public static method

public static IsUserSetOwner ( string userName, int setId ) : bool
userName string
setId int
return bool

IsUserSetSubscriber() public static method

public static IsUserSetSubscriber ( string userName, int setId ) : bool
userName string
setId int
return bool

IsUserSubmissionVotingMeanie() public static method

public static IsUserSubmissionVotingMeanie ( string userName ) : bool
userName string
return bool

IsUserSubscribedToSet() public static method

public static IsUserSubscribedToSet ( string userName, string setName ) : bool
userName string
setName string
return bool

IsUserSubverseAdmin() public static method

public static IsUserSubverseAdmin ( string userName, string subverse ) : bool
userName string
subverse string
return bool

IsUserSubverseModerator() public static method

public static IsUserSubverseModerator ( string userName, string subverse ) : bool
userName string
subverse string
return bool

IsUserSubverseSubscriber() public static method

public static IsUserSubverseSubscriber ( string userName, string subverse ) : bool
userName string
subverse string
return bool

LinksInNewWindow() public static method

public static LinksInNewWindow ( string userName ) : bool
userName string
return bool

OriginalUsername() public static method

public static OriginalUsername ( string userName ) : string
userName string
return string

PostRepliesCount() public static method

public static PostRepliesCount ( string userName ) : int
userName string
return int

PrivateMessageCount() public static method

public static PrivateMessageCount ( string userName ) : int
userName string
return int

PublicSubscriptionsEnabled() public static method

public static PublicSubscriptionsEnabled ( string userName ) : bool
userName string
return bool

SetUserStylePreferenceCookie() public static method

public static SetUserStylePreferenceCookie ( string theme ) : void
theme string
return void

SetsSubscriptionCount() public static method

public static SetsSubscriptionCount ( string userName ) : int
userName string
return int

SubscribeToSet() public static method

public static SubscribeToSet ( string userName, int setId ) : void
userName string
setId int
return void

SubscribeToSubverse() public static method

public static SubscribeToSubverse ( string userName, string subverse ) : void
userName string
subverse string
return void

SubscriptionCount() public static method

public static SubscriptionCount ( string userName ) : int
userName string
return int

Topmenu_From_Subscriptions() public static method

public static Topmenu_From_Subscriptions ( string userName ) : bool
userName string
return bool

TotalVotesUsedInPast24Hours() public static method

public static TotalVotesUsedInPast24Hours ( string userName ) : int
userName string
return int

UnSubscribeFromSet() public static method

public static UnSubscribeFromSet ( string userName, int setId ) : void
userName string
setId int
return void

UnSubscribeFromSubverse() public static method

public static UnSubscribeFromSubverse ( string userName, string subverse ) : void
userName string
subverse string
return void

UnreadCommentRepliesCount() public static method

public static UnreadCommentRepliesCount ( string userName ) : int
userName string
return int

UnreadPostRepliesCount() public static method

public static UnreadPostRepliesCount ( string userName ) : int
userName string
return int

UnreadPrivateMessagesCount() public static method

public static UnreadPrivateMessagesCount ( string userName ) : int
userName string
return int

UnreadTotalNotificationsCount() public static method

public static UnreadTotalNotificationsCount ( string userName ) : int
userName string
return int

UserBadges() public static method

public static UserBadges ( string userName ) : List
userName string
return List

UserDailyCommentPostingQuotaForNegativeScoreUsed() public static method

public static UserDailyCommentPostingQuotaForNegativeScoreUsed ( string userName ) : bool
userName string
return bool

UserDailyGlobalPostingQuotaUsed() public static method

public static UserDailyGlobalPostingQuotaUsed ( string userName ) : bool
userName string
return bool

UserDailyPostingQuotaForNegativeScoreUsed() public static method

public static UserDailyPostingQuotaForNegativeScoreUsed ( string userName ) : bool
userName string
return bool

UserDailyPostingQuotaForSubUsed() public static method

public static UserDailyPostingQuotaForSubUsed ( string userName, string subverse ) : bool
userName string
subverse string
return bool

UserExists() public static method

public static UserExists ( string userName ) : bool
userName string
return bool

UserHasNewMessages() public static method

public static UserHasNewMessages ( string userName ) : bool
userName string
return bool

UserHourlyGlobalPostingQuotaUsed() public static method

public static UserHourlyGlobalPostingQuotaUsed ( string userName ) : bool
userName string
return bool

UserHourlyPostingQuotaForSubUsed() public static method

public static UserHourlyPostingQuotaForSubUsed ( string userName, string subverse ) : bool
userName string
subverse string
return bool

UserIpAddress() public static method

public static UserIpAddress ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase
return string

UserShortbio() public static method

public static UserShortbio ( string userName ) : string
userName string
return string

UserStatsModel() public static method

public static UserStatsModel ( string userName ) : Voat.Models.UserStatsModel
userName string
return Voat.Models.UserStatsModel

UserStylePreference() public static method

public static UserStylePreference ( string userName ) : string
userName string
return string

UserSubscriptions() public static method

public static UserSubscriptions ( string userName ) : List
userName string
return List