This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun attemptLogin() { | |
viewModelScope.launch { | |
if (listOf(validateEmail(), validatePassword()).allValid()) { | |
uiState = uiState.copy(loading = true) | |
authenticationRepository.login( | |
email = uiState.content.email, | |
password = uiState.content.password | |
).handleResult( | |
onError = { loginError -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackPanel Orientation="Vertical"> | |
<StackPanel Orientation="Horiztonal"> | |
<StackPanel.Resources> | |
<Style TargetType="Image"> | |
<Setter Property="Width" Value="20"/> | |
</Style> | |
</StackPanel.Resources> | |
<Image /> | |
<Image /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace MCVE | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IEnumerable<Models.DbMatch.Match> GetMatchesForListOfTeamIds(long usersChampionId, IEnumerable<int> teamOne, IEnumerable<int> teamTwo, int matchCount) | |
{ | |
Console.WriteLine(DateTime.Now + " finding metches of users request."); | |
return _dbContext.Matches | |
.Include(x => x.Teams).ThenInclude(y => y.Players).ThenInclude(x => x.Runes) | |
.Include(x => x.Teams).ThenInclude(y => y.Players).ThenInclude(x => x.Items) | |
.Include(x => x.Teams).ThenInclude(y => y.Players).ThenInclude(x => x.SummonerSpells) | |
.Include(x => x.Teams).ThenInclude(y => y.Players).ThenInclude(x => x.Events) | |
.Where(q => q.Teams | |
.All(t => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ICollection<Models.DbMatch.PlayerItem> GetItemsForParticipant(RiotSharp.Endpoints.MatchEndpoint.Participant participant) | |
{ | |
ICollection<Models.DbMatch.PlayerItem> items = new List<Models.DbMatch.PlayerItem>(); | |
try | |
{ | |
if (participant?.Stats?.Item0 != 0) | |
{ | |
items.Add(new Models.DbMatch.PlayerItem() { ItemId = participant.Stats.Item0, ItemSlot = 0}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ICollection<Models.DbMatch.PlayerItem> GetItemsForParticipant(RiotSharp.Endpoints.MatchEndpoint.Participant participant) | |
{ | |
ICollection<Models.DbMatch.PlayerItem> items = new List<Models.DbMatch.PlayerItem>(); | |
try | |
{ | |
if (participant?.Stats?.Item0 != 0) | |
{ | |
items.Add(new Models.DbMatch.PlayerItem() { ItemId = participant.Stats.Item0, ItemSlot = 0}); | |
} |