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
restApi.getDocumentList() | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.map { response -> | |
response.forEach { list -> | |
list.DocList.forEach { document -> | |
document.FieldsValues?.fields?.forEach { field -> | |
val data = list.Fields.find { it.Code == field.Code }!! | |
field.Name = data.Name | |
field.Order = data.Order |
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
// montecarlo.cpp: определяет точку входа для консольного приложения. | |
// | |
#include "stdafx.h" | |
#include <cmath> | |
int main() { | |
int a = 3, b = 5; | |
float Ymin = 0.0f; |
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
// montecarlo.cpp: определяет точку входа для консольного приложения. | |
// | |
#include "stdafx.h" | |
#include <cmath> | |
int main() { | |
int a = 3, b = 5; | |
float Ymin = 0.0f; |
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
public class OnlineAdapter extends RecyclerView.Adapter<OnlineAdapter.RowsViewHolder> { | |
private List<List<PriceOffer>> currentList = new ArrayList<>(); | |
Context context; | |
String data; | |
int count = 0; | |
public static class RowsViewHolder extends RecyclerView.ViewHolder{ | |
LinearLayout linearLayout; |
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
import java.util.List; | |
public class OnlineAdapter extends RecyclerView.Adapter<OnlineAdapter.RowsViewHolder> { | |
private List<List<PriceOffer>> currentList = new ArrayList<>(); | |
public static ArrayList<BarEntry> entries = new ArrayList<>(); | |
public static ArrayList<String> list = new ArrayList<>(); | |
public static ArrayList<String> data = new ArrayList<>(); | |
Context context; |
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
@InjectPresenter(type = PresenterType.GLOBAL) | |
lateinit var presenter: EventPresenter | |
@ProvidePresenterTag(presenterClass = EventPresenter::class, type = PresenterType.GLOBAL) | |
fun providePresenterTag(): String { | |
return "PRESENTER_EVENT_$mvpChildId" | |
} | |
var item: Event? = null | |
set(value) { |
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
fun personInjector(): SlimInjector<Person> = injector { view: View, person: Person -> | |
view.name.text = person.name | |
view.about.text = person.about | |
GlideApp.with(view) | |
.load(person.avatar) | |
.circleCrop() | |
.into(view.avatar) |
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.coin.profit.base | |
import android.os.Build | |
import android.annotation.TargetApi | |
import android.content.Context | |
import android.content.ContextWrapper | |
import android.content.res.Configuration | |
import java.util.* | |