This file contains 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
package com.template.androidtemplate.ui.photos.viewmodel | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.viewModelScope | |
import com.template.androidtemplate.data.helper.PreferencesHelper | |
import com.template.androidtemplate.data.model.Photos | |
import com.template.androidtemplate.data.repository.PhotosRepository | |
import com.template.androidtemplate.utils.NetworkHelper |
This file contains 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 flask import request, jsonify | |
from flask_restx import Resource, Namespace | |
from article import db, config | |
import uuid | |
import os | |
from werkzeug.utils import secure_filename | |
from flask import current_app | |
from flask_jwt_extended import ( | |
verify_jwt_in_request, |
This file contains 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
package com.template.bloomweather.model; | |
/* | |
This is a weather model auto generated from Open Weather API | |
*/ | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
public class WeatherData { |
This file contains 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
package com.template.bloomweather.ui.main.controller; | |
import android.util.Log; | |
import androidx.annotation.NonNull; | |
import com.google.gson.GsonBuilder; | |
import com.template.bloomweather.constants.AppConstants; | |
import com.template.bloomweather.model.WeatherData; | |
import com.template.bloomweather.services.ApiClient; |
This file contains 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
package com.template.bloomweather.ui.custom; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.location.Address; | |
import android.location.Geocoder; | |
import android.location.Location; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.util.Log; |
This file contains 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
[ | |
{ | |
"slug":"stark", | |
"name":"House Stark of Winterfell", | |
"members":[ | |
{ | |
"name":"Jon Snow", | |
"slug":"jon" | |
}, | |
{ |
This file contains 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 GameOfThrones( | |
@SerializedName("members") | |
var members: List<Member>, | |
@SerializedName("name") | |
var name: String, | |
@SerializedName("slug") | |
var slug: String | |
) { | |
data class Member( | |
@SerializedName("name") |
This file contains 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
package com.template.androidtemplate.ui.home.viewmodel | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.viewModelScope | |
import com.template.androidtemplate.data.helper.PreferencesHelper | |
import com.template.androidtemplate.data.model.GameOfThrones | |
import com.template.androidtemplate.data.model.Photos | |
import com.template.androidtemplate.data.repository.HomeRepository |
This file contains 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
package com.template.androidtemplate.ui.home.adapter | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.RecyclerView | |
import com.template.androidtemplate.R | |
import com.template.androidtemplate.data.model.GameOfThrones | |
import kotlinx.android.synthetic.main.item_row_child.view.* |
This file contains 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
package com.template.androidtemplate.ui.home.adapter | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import androidx.recyclerview.widget.RecyclerView | |
import com.template.androidtemplate.R | |
import com.template.androidtemplate.data.model.GameOfThrones | |
import kotlinx.android.synthetic.main.item_row_parent.view.* |