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
from src.entities.errors.NotFoundTodoItem import NotFoundTodoItem | |
from src.usecases.errors.invalidusererror import InvalidUserError | |
from src.entities.todolist import TodoList | |
from src.usecases.ports.todolistrepository import TodoListRepository | |
class DeleteTodoItem: | |
def __init__(self, todolistrepository): | |
self.todolistrepository: TodoListRepository = todolistrepository |
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
plugins { | |
... | |
} | |
android { | |
... | |
} | |
dependencies { |
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
import React, {createContext, useCallback, useContext, useEffect, useMemo, useState} from "react"; | |
import NetInfo, {NetInfoState} from "@react-native-community/netinfo"; | |
import changeNavigationBarColor from "react-native-navigation-bar-color"; | |
interface NetworkState { | |
readonly networkState: NetInfoState | null | |
} | |
interface NetworkAction { | |
isConnected: () => Boolean |
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
import React, {createContext, useCallback, useContext, useEffect, useMemo, useState,} from 'react'; | |
import {PlayerTemplate} from "../../player_template"; | |
import {useSafeNetworkContext} from "../../../../context/NetworkContextProvider"; | |
interface PlayerState { | |
paused: boolean; | |
muted: boolean; | |
volume: number; | |
maxVolume: number, | |
minVolume: number, |
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
const BasicPlayer = () => { | |
const player = useSafePlayer(); | |
const remoteURL = | |
''; | |
useEffect(() => { | |
MusicControl.enableBackgroundMode(true); | |
// MusicControl.handleAudioInterruptions(true); | |
// Basic Controls | |
MusicControl.enableControl('play', true) |
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
data class TodoDetail ( | |
val title: String, | |
val description: String | |
) | |
class TodoDetailViewModel: ViewModel() { | |
private val _state = MutableLiveData<String>() | |
val state: LiveData<String> | |
get() = _state | |
private val _detailError = MutableLiveData<Throwable>() |
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
import * as functions from "firebase-functions"; | |
import * as admin from "firebase-admin" | |
const express = require('express'); | |
const app = express(); | |
const firebaseApp = admin.initializeApp(); | |
// @ts-ignore | |
app.get("/:notificationType/:summonerName", async (req, res) => { | |
try { |
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
import React, {createContext, useCallback, useContext, useMemo, useState} from "react"; | |
import { Auth } from "aws-amplify"; | |
export enum AuthenticationStatus { | |
UNAUTHENTICATED, | |
SIGNING_IN, | |
WAITING_OTP, | |
CONFIRMING_OTP, | |
APPROVED_OTP, | |
AUTHENTICATED, |