ÂÜÀòÂÒÂ×

Robert Godfrey

Vice President of IT Infrastructure at Soaren Management

Robert Godfrey has worked in the IT industry since 2004. Robert began their career at Clopay Building Products as a Quality Supervisor in 2004. In 2008, they moved to Northland Pioneer College as a Network & Systems Administrator. From 2013 to 2015, they were the Manager, Information Systems at Arizona State University. In 2015, they joined IO as a Senior Systems Administrator. In 2018, they became the Director of IT at Arizona Nutritional Supplements (ANS). Since 2020, they have been with Soaren Management, holding the roles of Vice President of IT Infrastructure and Director Of Information Technology.

package com.example.mvvm_livedata.viewmodel;

import android.app.Application;

import androidx.annotation.NonNull;

import androidx.lifecycle.AndroidViewModel;

import androidx.lifecycle.LiveData;

import com.example.mvvm_livedata.model.Project;

import com.example.mvvm_livedata.repository.ProjectRepository;

import java.util.List;

public class ProjectListViewModel extends AndroidViewModel {

private final LiveData<List<Project>> projectListObservable;

public ProjectListViewModel(@NonNull Application application) {

super(application);

// If any transformation is needed, this can be simply done by Transformations class ...

projectListObservable = ProjectRepository.getInstance().getProjectList("Google");

}

/**

* Expose the LiveData Projects query so the UI can observe it.

*/

public LiveData<List<Project>> getProjectListObservable() {

return projectListObservable;

}

}

Links