(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const functions = require('firebase-functions'); | |
let admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
const actionTypeNewLike = "new_like"; | |
const actionTypeNewComment = "new_comment"; | |
const actionTypeNewPost = "new_post"; | |
const notificationTitle = "Notification"; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public class Contact { | |
private int id; | |
private String title; | |
private String description; | |
private int priority; | |
private String numone; | |
private String numtwo; | |
private String numthree; | |
private String numfour; | |
private String type; |
public class ContactAdapter extends RecyclerView.Adapter<contactAdapter.ContactHolder>{ | |
} |
public class ContactAdapter extends RecyclerView.Adapter<contactAdapter.ContactHolder> { | |
class ContactHolder extends RecyclerView.ViewHolder { |
public class ContactAdapter extends RecyclerView.Adapter<contactAdapter.ContactHolder> { | |
private List<Contact> contacts = new ArrayList<>(); | |
private Context cxt; | |
String telnum; | |
Activity activity; | |
@Override | |
public ContactHolder onCreateViewHolder(ViewGroup parent, int viewType) { |
public class ContactAdapter extends RecyclerView.Adapter<contactAdapter.ContactHolder> { | |
private List<Contact> contacts = new ArrayList<>(); | |
private Context cxt; | |
String telnum; | |
Activity activity; | |
@Override | |
public ContactHolder onCreateViewHolder(ViewGroup parent, int viewType) { |
class ContactHolder extends RecyclerView.ViewHolder { | |
private TextView textViewTitle; | |
private TextView numone; | |
private TextView numtwo; | |
private TextView numthree; | |
private TextView numfour; | |
private ImageView imageview1,imageview2,imageview3,imageview4; |
NoteAdapter adapter = new NoteAdapter(); | |
RecyclerView recyclerView = findViewById(R.id.recycler_view); | |
recyclerView.setLayoutManager(new LinearLayoutManager(this)); | |
recyclerView.setAdapter(adapter); | |
adapter.setContacts(list,cxt,this); |
class UserDatasourceImpl @Inject constructor( | |
private val auth: FirebaseAuth, | |
) : UserDatasource { | |
override fun registerUserWithEmailAndPassword( | |
userName: String, | |
password: String, | |
): NetworkResult<Any> { | |
lateinit var networkResponse: NetworkResult<Any> |