/// <summary>Generates the file path for a user's profile.</summary> public static string GenerateUserAvatarFilePath(int userId, UserAvatarSize size) { return(IOUtilities.CombinePath(CacheClient.GenerateUserAvatarDirectoryPath(userId), size.ToString() + ".png")); }
/// <summary>Delete's a user's avatars from the cache.</summary> public static bool DeleteUserAvatar(int userId) { return(IOUtilities.DeleteDirectory(CacheClient.GenerateUserAvatarDirectoryPath(userId))); }
/// <summary>Delete's a user's avatars from the cache.</summary> public static bool DeleteUserAvatar(int userId) { string path = CacheClient.GenerateUserAvatarDirectoryPath(userId); return(LocalDataStorage.DeleteDirectory(path)); }