C# Class JabbR.Services.InMemoryRepository

Inheritance: IJabbrRepository
Mostrar archivo Open project: ucdavis/JabbR

Public Methods

Method Description
Add ( JabbR.Models.ChatClient client ) : void
Add ( ChatMessage message ) : void
Add ( JabbR.Models.ChatRoom room ) : void
Add ( JabbR.Models.ChatUser user ) : void
Add ( JabbR.Models.ChatUserIdentity identity ) : void
AddUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
CommitChanges ( ) : void
Dispose ( ) : void
GetAllowedRooms ( JabbR.Models.ChatUser user ) : IQueryable
GetClientById ( string clientId, bool includeUser = false ) : JabbR.Models.ChatClient
GetMessagesById ( string id ) : ChatMessage
GetMessagesByRoom ( JabbR.Models.ChatRoom room ) : IQueryable
GetOnlineUsers ( ) : IQueryable
GetOnlineUsers ( JabbR.Models.ChatRoom room ) : IQueryable
GetPreviousMessages ( string messageId ) : IQueryable
GetRoomAndUsersByName ( string roomName ) : JabbR.Models.ChatRoom
GetRoomByName ( string roomName ) : JabbR.Models.ChatRoom
GetRoomByName ( string roomName, bool includeUsers = false, bool includeOwners = false ) : JabbR.Models.ChatRoom
GetUserByClientId ( string clientId ) : JabbR.Models.ChatUser
GetUserById ( string userId ) : JabbR.Models.ChatUser
GetUserByIdentity ( string providerName, string userIdentity ) : JabbR.Models.ChatUser
GetUserByLegacyIdentity ( string userIdentity ) : JabbR.Models.ChatUser
GetUserByName ( string userName ) : JabbR.Models.ChatUser
InMemoryRepository ( ) : System
IsUserInRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : bool
Remove ( JabbR.Models.ChatClient client ) : void
Remove ( JabbR.Models.ChatRoom room ) : void
Remove ( JabbR.Models.ChatUser user ) : void
Remove ( JabbR.Models.ChatUserIdentity identity ) : void
RemoveAllClients ( ) : void
RemoveUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
SearchUsers ( string name ) : IQueryable

Method Details

Add() public method

public Add ( JabbR.Models.ChatClient client ) : void
client JabbR.Models.ChatClient
return void

Add() public method

public Add ( ChatMessage message ) : void
message JabbR.Models.ChatMessage
return void

Add() public method

public Add ( JabbR.Models.ChatRoom room ) : void
room JabbR.Models.ChatRoom
return void

Add() public method

public Add ( JabbR.Models.ChatUser user ) : void
user JabbR.Models.ChatUser
return void

Add() public method

public Add ( JabbR.Models.ChatUserIdentity identity ) : void
identity JabbR.Models.ChatUserIdentity
return void

AddUserRoom() public method

public AddUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return void

CommitChanges() public method

public CommitChanges ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAllowedRooms() public method

public GetAllowedRooms ( JabbR.Models.ChatUser user ) : IQueryable
user JabbR.Models.ChatUser
return IQueryable

GetClientById() public method

public GetClientById ( string clientId, bool includeUser = false ) : JabbR.Models.ChatClient
clientId string
includeUser bool
return JabbR.Models.ChatClient

GetMessagesById() public method

public GetMessagesById ( string id ) : ChatMessage
id string
return JabbR.Models.ChatMessage

GetMessagesByRoom() public method

public GetMessagesByRoom ( JabbR.Models.ChatRoom room ) : IQueryable
room JabbR.Models.ChatRoom
return IQueryable

GetOnlineUsers() public method

public GetOnlineUsers ( ) : IQueryable
return IQueryable

GetOnlineUsers() public method

public GetOnlineUsers ( JabbR.Models.ChatRoom room ) : IQueryable
room JabbR.Models.ChatRoom
return IQueryable

GetPreviousMessages() public method

public GetPreviousMessages ( string messageId ) : IQueryable
messageId string
return IQueryable

GetRoomAndUsersByName() public method

public GetRoomAndUsersByName ( string roomName ) : JabbR.Models.ChatRoom
roomName string
return JabbR.Models.ChatRoom

GetRoomByName() public method

public GetRoomByName ( string roomName ) : JabbR.Models.ChatRoom
roomName string
return JabbR.Models.ChatRoom

GetRoomByName() public method

public GetRoomByName ( string roomName, bool includeUsers = false, bool includeOwners = false ) : JabbR.Models.ChatRoom
roomName string
includeUsers bool
includeOwners bool
return JabbR.Models.ChatRoom

GetUserByClientId() public method

public GetUserByClientId ( string clientId ) : JabbR.Models.ChatUser
clientId string
return JabbR.Models.ChatUser

GetUserById() public method

public GetUserById ( string userId ) : JabbR.Models.ChatUser
userId string
return JabbR.Models.ChatUser

GetUserByIdentity() public method

public GetUserByIdentity ( string providerName, string userIdentity ) : JabbR.Models.ChatUser
providerName string
userIdentity string
return JabbR.Models.ChatUser

GetUserByLegacyIdentity() public method

public GetUserByLegacyIdentity ( string userIdentity ) : JabbR.Models.ChatUser
userIdentity string
return JabbR.Models.ChatUser

GetUserByName() public method

public GetUserByName ( string userName ) : JabbR.Models.ChatUser
userName string
return JabbR.Models.ChatUser

InMemoryRepository() public method

public InMemoryRepository ( ) : System
return System

IsUserInRoom() public method

public IsUserInRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : bool
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return bool

Remove() public method

public Remove ( JabbR.Models.ChatClient client ) : void
client JabbR.Models.ChatClient
return void

Remove() public method

public Remove ( JabbR.Models.ChatRoom room ) : void
room JabbR.Models.ChatRoom
return void

Remove() public method

public Remove ( JabbR.Models.ChatUser user ) : void
user JabbR.Models.ChatUser
return void

Remove() public method

public Remove ( JabbR.Models.ChatUserIdentity identity ) : void
identity JabbR.Models.ChatUserIdentity
return void

RemoveAllClients() public method

public RemoveAllClients ( ) : void
return void

RemoveUserRoom() public method

public RemoveUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return void

SearchUsers() public method

public SearchUsers ( string name ) : IQueryable
name string
return IQueryable