mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-06-30 21:04:16 +00:00
add project adins
This commit is contained in:
parent
ad06ac5505
commit
f8f85d679d
5299 changed files with 625430 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
package com.adins.mss.odr.accounts.api;
|
||||
|
||||
import com.adins.mss.dao.TaskH;
|
||||
import com.adins.mss.foundation.http.MssResponseType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by olivia.dg on 11/21/2017.
|
||||
*/
|
||||
|
||||
public class LoadOpportunityDetailResponse extends MssResponseType {
|
||||
@SerializedName("listOpporDetail")
|
||||
List<TaskH> listOpporDetail;
|
||||
|
||||
public List<TaskH> getListOpporDetail() {
|
||||
return listOpporDetail;
|
||||
}
|
||||
|
||||
public void setListOpporDetail(List<TaskH> listOpporDetail) {
|
||||
this.listOpporDetail = listOpporDetail;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,274 @@
|
|||
package com.adins.mss.coll.fragments;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.adins.mss.base.GlobalData;
|
||||
import com.adins.mss.base.loyalti.mypointdashboard.DashboardMyPoint;
|
||||
import com.adins.mss.coll.NewMCMainActivity;
|
||||
import com.adins.mss.coll.R;
|
||||
import com.adins.mss.coll.dummy.MyDashboardItemDummyAdapter;
|
||||
import com.adins.mss.constant.Global;
|
||||
import com.adins.mss.foundation.UserHelp.Bean.Dummy.UserHelpViewDummy;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import com.adins.mss.coll.loyalti.pointacquisitionmonthly.MonthlyPointsChartView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A fragment representing a list of Items.
|
||||
* <p/>
|
||||
* Activities containing this fragment MUST implement the {@link OnListFragmentInteractionListener}
|
||||
* interface.
|
||||
*/
|
||||
public class DashBoardFragment extends Fragment {
|
||||
|
||||
// TODO: Customize parameter argument names
|
||||
private static final String ARG_COLUMN_COUNT = "column-count";
|
||||
// TODO: Customize parameters
|
||||
private int mColumnCount = 1;
|
||||
private OnListFragmentInteractionListener mListener;
|
||||
RecyclerView recyclerView;
|
||||
MyDashBoardItemRecyclerViewAdapter adapter;
|
||||
private FirebaseAnalytics screenName;
|
||||
/**
|
||||
* Mandatory empty constructor for the fragment manager to instantiate the
|
||||
* fragment (e.g. upon screen orientation changes).
|
||||
*/
|
||||
public DashBoardFragment() {
|
||||
}
|
||||
|
||||
// TODO: Customize parameter initialization
|
||||
@SuppressWarnings("unused")
|
||||
public static DashBoardFragment newInstance(int columnCount) {
|
||||
DashBoardFragment fragment = new DashBoardFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putInt(ARG_COLUMN_COUNT, columnCount);
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
screenName = FirebaseAnalytics.getInstance(getActivity());
|
||||
if (getArguments() != null) {
|
||||
mColumnCount = getArguments().getInt(ARG_COLUMN_COUNT);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
View view = inflater.inflate(R.layout.fragment_dashboard_item_list, container, false);
|
||||
recyclerView = (RecyclerView) view.findViewById(R.id.list);
|
||||
getActivity().setTitle(getString(R.string.dashboard_competition_page_title));
|
||||
Global.positionStack.push(1);
|
||||
String listKompetisi = GlobalData.getSharedGlobalData().getUser().getListKompetisi();
|
||||
String url_header = GlobalData.getSharedGlobalData().getURL_GET_DETAILKOMPETISI();
|
||||
|
||||
setupDashboardListener();
|
||||
|
||||
adapter = new MyDashBoardItemRecyclerViewAdapter(mListener, getActivity());
|
||||
|
||||
GetDetailListKompetisi getDetailListKompetisi = new GetDetailListKompetisi(recyclerView, adapter, this.getActivity());
|
||||
getDetailListKompetisi.setClassName(this.getClass().getSimpleName());
|
||||
getDetailListKompetisi.execute();
|
||||
// }
|
||||
// else {
|
||||
// try {
|
||||
// final NiftyDialogBuilder dialogBuilder = NiftyDialogBuilder.getInstance(getActivity());
|
||||
// dialogBuilder.withTitle(getString(com.adins.mss.base.R.string.info_capital)).withMessage(getString(com.adins.mss.base.R.string.info_failgetdata))
|
||||
// .withButton1Text(getString(com.adins.mss.base.R.string.btnOk))
|
||||
// .setButton1Click(new View.OnClickListener() {
|
||||
//
|
||||
// @Override
|
||||
// public void onClick(View arg0) {
|
||||
// dialogBuilder.dismiss();
|
||||
// }
|
||||
// }).show();
|
||||
// } catch (Exception e) {
|
||||
// FireCrash.log(e);
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
//// Toast.makeText(getActivity(), "No competition found. Please re-sync to open your details achievement" , Toast.LENGTH_SHORT).show();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// Set the adapter
|
||||
// if (view instanceof RecyclerView) {
|
||||
// Context context = view.getContext();
|
||||
// if (mColumnCount <= 1) {
|
||||
// recyclerView.setLayoutManager(new LinearLayoutManager(context));
|
||||
// } else {
|
||||
// recyclerView.setLayoutManager(new GridLayoutManager(context, mColumnCount));
|
||||
// }
|
||||
// }
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
//Set Firebase screen name
|
||||
screenName.setCurrentScreen(getActivity(), getString(R.string.screen_name_my_points), null);
|
||||
}
|
||||
|
||||
private void setupDashboardListener(){
|
||||
mListener = new OnListFragmentInteractionListener() {
|
||||
@Override
|
||||
public void onListFragmentInteraction(Bundle item) {
|
||||
//dummy redirect without data: soon to be changed
|
||||
goToMonthlyPointView(item);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void goToMonthlyPointView(Bundle bundle){
|
||||
MonthlyPointsChartView monthlyPointsChart = new MonthlyPointsChartView();
|
||||
monthlyPointsChart.setArguments(bundle);
|
||||
FragmentTransaction transaction = NewMCMainActivity.fragmentManager.beginTransaction();
|
||||
transaction.setCustomAnimations(R.anim.activity_open_translate,R.anim.activity_close_scale,R.anim.activity_open_scale,R.anim.activity_close_translate);
|
||||
transaction.replace(R.id.content_frame, monthlyPointsChart);
|
||||
transaction.addToBackStack(null);
|
||||
transaction.commit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDetach() {
|
||||
super.onDetach();
|
||||
mListener = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPrepareOptionsMenu(final Menu menu) {
|
||||
super.onPrepareOptionsMenu(menu);
|
||||
if(checkUserHelpAvailability()){
|
||||
menu.findItem(R.id.mnGuide).setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
if(item.getItemId() == R.id.mnGuide){
|
||||
if(!Global.BACKPRESS_RESTRICTION) {
|
||||
recyclerView.setAdapter(new MyDashboardItemDummyAdapter(this.getActivity(),recyclerView, adapter));
|
||||
}
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* This interface must be implemented by activities that contain this
|
||||
* fragment to allow an interaction in this fragment to be communicated
|
||||
* to the activity and potentially other fragments contained in that
|
||||
* activity.
|
||||
* <p/>
|
||||
* See the Android Training lesson <a href=
|
||||
* "http://developer.android.com/training/basics/fragments/communicating.html"
|
||||
* >Communicating with Other Fragments</a> for more information.
|
||||
*/
|
||||
public interface OnListFragmentInteractionListener {
|
||||
// TODO: Update argument type and name
|
||||
void onListFragmentInteraction(Bundle item);
|
||||
|
||||
}
|
||||
|
||||
|
||||
private boolean checkUserHelpAvailability() {
|
||||
List<UserHelpViewDummy> userHelpViews = Global.userHelpDummyGuide.get(DashBoardFragment.class.getSimpleName());
|
||||
return Global.ENABLE_USER_HELP && userHelpViews != null;
|
||||
}
|
||||
// private void getDetailKompetisi(final Context activity ) {
|
||||
// new AsyncTask<Void, Void, String>() {
|
||||
// String errMsg = "";
|
||||
//
|
||||
// @Override
|
||||
// protected void onPreExecute() {
|
||||
// super.onPreExecute();
|
||||
// progressDialog = ProgressDialog.show(activity, "", "Please Wait", true);
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected String doInBackground(Void... voids) {
|
||||
// if (Tool.isInternetconnected(activity)) {
|
||||
//
|
||||
// Gson gson = new GsonBuilder().setDateFormat("ddMMyyyyHHmmss").registerTypeHierarchyAdapter(byte[].class,
|
||||
// new GsonHelper.ByteArrayToBase64TypeAdapter()).create();
|
||||
// String result;
|
||||
// DetailKompetisiRequest requestType = new DetailKompetisiRequest();
|
||||
// ArrayList<String> data = null;
|
||||
// data = new ArrayList<>();
|
||||
// for(int i = 0 ; i < beanResps.getBeanResp().size() ; i++){
|
||||
// data.add(beanResps.getBeanResp().get(i).getMembershipProgramCode());
|
||||
// }
|
||||
// requestType.setMEMBERSHIP_PROGRAM_CODE(data);
|
||||
// requestType.setAudit(GlobalData.getSharedGlobalData().getAuditData());
|
||||
//// requestType.addItemToUnstructured(new KeyValue("imei", GlobalData.getSharedGlobalData().getImei()), false);
|
||||
//
|
||||
// String json = GsonHelper.toJson(requestType);
|
||||
// String url = GlobalData.getSharedGlobalData().getURL_GET_DETAILKOMPETISI();
|
||||
// boolean encrypt = GlobalData.getSharedGlobalData().isEncrypt();
|
||||
// boolean decrypt = GlobalData.getSharedGlobalData().isDecrypt();
|
||||
// HttpCryptedConnection httpConn = new HttpCryptedConnection(activity, encrypt, decrypt);
|
||||
// HttpConnectionResult serverResult = null;
|
||||
// try {
|
||||
// serverResult = httpConn.requestToServer(url, json, Global.DEFAULTCONNECTIONTIMEOUT);
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// errMsg = e.getMessage();
|
||||
// return errMsg;
|
||||
// }
|
||||
//
|
||||
// if(serverResult.getStatusCode() == 200){
|
||||
// try {
|
||||
// DetailKompetisiResponse response = gson.fromJson(serverResult.getResult(), DetailKompetisiResponse.class);
|
||||
// if (serverResult != null) {
|
||||
//
|
||||
// dataDetail = new DetailKompetisiResponse();
|
||||
// dataDetail = response;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// return e.getMessage();
|
||||
// }
|
||||
// }else {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// return errMsg;
|
||||
// } else {
|
||||
// return errMsg;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void onPostExecute(String s) {
|
||||
// super.onPostExecute(s);
|
||||
// progressDialog.dismiss();
|
||||
// setupDashboardListener();
|
||||
// recyclerView.setAdapter(new MyDashBoardItemRecyclerViewAdapter(beanResps.getBeanResp(), dataDetail, mListener,getActivity()));
|
||||
// if (errMsg.length() != 0) {
|
||||
// Toast.makeText(activity, errMsg, Toast.LENGTH_SHORT).show();
|
||||
// }
|
||||
// }
|
||||
// }.execute();
|
||||
// }
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,66 @@
|
|||
package com.adins.mss.base.dynamicform;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.adins.mss.base.GlobalData;
|
||||
import com.adins.mss.base.crashlytics.FireCrash;
|
||||
import com.adins.mss.base.models.RequestRejectedWithResurvey;
|
||||
import com.adins.mss.base.util.GsonHelper;
|
||||
import com.adins.mss.base.util.Utility;
|
||||
import com.adins.mss.constant.Global;
|
||||
import com.adins.mss.dao.TaskH;
|
||||
import com.adins.mss.foundation.http.HttpConnectionResult;
|
||||
import com.adins.mss.foundation.http.HttpCryptedConnection;
|
||||
import com.google.firebase.perf.FirebasePerformance;
|
||||
import com.google.firebase.perf.metrics.HttpMetric;
|
||||
|
||||
public class RejectWithResurveyApi {
|
||||
private Context activity;
|
||||
private TaskH taskH;
|
||||
private String flag, applicationFlag;
|
||||
|
||||
public RejectWithResurveyApi(Context activity, TaskH taskH, String flag, String applicationFlag) {
|
||||
this.activity = activity;
|
||||
this.taskH = taskH;
|
||||
this.flag = flag;
|
||||
this.applicationFlag = applicationFlag;
|
||||
}
|
||||
|
||||
public HttpConnectionResult request() {
|
||||
RequestRejectedWithResurvey request = new RequestRejectedWithResurvey();
|
||||
request.setUuid_task_h(taskH.getUuid_task_h());
|
||||
request.setFlag(flag);
|
||||
request.setUuid_user(GlobalData.getSharedGlobalData().getUser().getUuid_user());
|
||||
request.setUuid_ms_user(taskH.getUuid_resurvey_user());
|
||||
request.setIs_suggested(taskH.getResurvey_suggested());
|
||||
request.setNotes(taskH.getVerification_notes());
|
||||
request.setAudit(GlobalData.getSharedGlobalData()
|
||||
.getAuditData());
|
||||
request.addImeiAndroidIdToUnstructured();
|
||||
|
||||
String json = GsonHelper.toJson(request);
|
||||
String url = GlobalData.getSharedGlobalData().getURL_SUBMITVERIFICATIONTASK();
|
||||
if (applicationFlag.equals(Global.APPROVAL_FLAG)) {
|
||||
url = GlobalData.getSharedGlobalData().getURL_SUBMITAPPROVALTASK();
|
||||
}
|
||||
boolean encrypt = GlobalData.getSharedGlobalData().isEncrypt();
|
||||
boolean decrypt = GlobalData.getSharedGlobalData().isDecrypt();
|
||||
HttpCryptedConnection httpConn = new HttpCryptedConnection(activity, encrypt, decrypt);
|
||||
HttpConnectionResult serverResult = null;
|
||||
|
||||
//Firebase Performance Trace HTTP Request
|
||||
HttpMetric networkMetric =
|
||||
FirebasePerformance.getInstance().newHttpMetric(url, FirebasePerformance.HttpMethod.POST);
|
||||
Utility.metricStart(networkMetric, json);
|
||||
|
||||
try {
|
||||
serverResult = httpConn.requestToServer(url, json, Global.DEFAULTCONNECTIONTIMEOUT);
|
||||
Utility.metricStop(networkMetric, serverResult);
|
||||
return serverResult;
|
||||
} catch (Exception e) {
|
||||
FireCrash.log(e);
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.adins.mss.foundation.questiongenerator.form.QuestionView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/questionTwsLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0. label"
|
||||
android:id="@+id/questionTwsLabel" />
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/questionTwsAnswer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</com.adins.mss.foundation.questiongenerator.form.QuestionView>
|
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,137 @@
|
|||
package com.adins.mss.dao;
|
||||
|
||||
import android.database.Cursor;
|
||||
|
||||
import de.greenrobot.dao.AbstractDao;
|
||||
import de.greenrobot.dao.Property;
|
||||
import de.greenrobot.dao.internal.DaoConfig;
|
||||
import de.greenrobot.dao.database.Database;
|
||||
import de.greenrobot.dao.database.DatabaseStatement;
|
||||
|
||||
import com.adins.mss.dao.Broadcast;
|
||||
|
||||
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
||||
/**
|
||||
* DAO for table "TR_BROADCAST".
|
||||
*/
|
||||
public class BroadcastDao extends AbstractDao<Broadcast, String> {
|
||||
|
||||
public static final String TABLENAME = "TR_BROADCAST";
|
||||
|
||||
/**
|
||||
* Properties of entity Broadcast.<br/>
|
||||
* Can be used for QueryBuilder and for referencing column names.
|
||||
*/
|
||||
public static class Properties {
|
||||
public final static Property Uuid_broadcast = new Property(0, String.class, "uuid_broadcast", true, "UUID_BROADCAST");
|
||||
public final static Property Title = new Property(1, String.class, "title", false, "TITLE");
|
||||
public final static Property Message = new Property(2, String.class, "message", false, "MESSAGE");
|
||||
public final static Property Is_shown = new Property(3, Boolean.class, "is_shown", false, "IS_SHOWN");
|
||||
public final static Property Dtm_crt = new Property(4, java.util.Date.class, "dtm_crt", false, "DTM_CRT");
|
||||
};
|
||||
|
||||
|
||||
public BroadcastDao(DaoConfig config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public BroadcastDao(DaoConfig config, DaoSession daoSession) {
|
||||
super(config, daoSession);
|
||||
}
|
||||
|
||||
/** Creates the underlying database table. */
|
||||
public static void createTable(Database db, boolean ifNotExists) {
|
||||
String constraint = ifNotExists? "IF NOT EXISTS ": "";
|
||||
db.execSQL("CREATE TABLE " + constraint + "\"TR_BROADCAST\" (" + //
|
||||
"\"UUID_BROADCAST\" TEXT PRIMARY KEY NOT NULL ," + // 0: uuid_broadcast
|
||||
"\"TITLE\" TEXT," + // 1: title
|
||||
"\"MESSAGE\" TEXT," + // 2: message
|
||||
"\"IS_SHOWN\" INTEGER," + // 3: is_shown
|
||||
"\"DTM_CRT\" INTEGER);"); // 4: dtm_crt
|
||||
}
|
||||
|
||||
/** Drops the underlying database table. */
|
||||
public static void dropTable(Database db, boolean ifExists) {
|
||||
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"TR_BROADCAST\"";
|
||||
db.execSQL(sql);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected void bindValues(DatabaseStatement stmt, Broadcast entity) {
|
||||
stmt.clearBindings();
|
||||
stmt.bindString(1, entity.getUuid_broadcast());
|
||||
|
||||
String title = entity.getTitle();
|
||||
if (title != null) {
|
||||
stmt.bindString(2, title);
|
||||
}
|
||||
|
||||
String message = entity.getMessage();
|
||||
if (message != null) {
|
||||
stmt.bindString(3, message);
|
||||
}
|
||||
|
||||
Boolean is_shown = entity.getIs_shown();
|
||||
if (is_shown != null) {
|
||||
stmt.bindLong(4, is_shown ? 1L: 0L);
|
||||
}
|
||||
|
||||
java.util.Date dtm_crt = entity.getDtm_crt();
|
||||
if (dtm_crt != null) {
|
||||
stmt.bindLong(5, dtm_crt.getTime());
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public String readKey(Cursor cursor, int offset) {
|
||||
return cursor.getString(offset + 0);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public Broadcast readEntity(Cursor cursor, int offset) {
|
||||
Broadcast entity = new Broadcast( //
|
||||
cursor.getString(offset + 0), // uuid_broadcast
|
||||
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // title
|
||||
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // message
|
||||
cursor.isNull(offset + 3) ? null : cursor.getShort(offset + 3) != 0, // is_shown
|
||||
cursor.isNull(offset + 4) ? null : new java.util.Date(cursor.getLong(offset + 4)) // dtm_crt
|
||||
);
|
||||
return entity;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public void readEntity(Cursor cursor, Broadcast entity, int offset) {
|
||||
entity.setUuid_broadcast(cursor.getString(offset + 0));
|
||||
entity.setTitle(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
|
||||
entity.setMessage(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
|
||||
entity.setIs_shown(cursor.isNull(offset + 3) ? null : cursor.getShort(offset + 3) != 0);
|
||||
entity.setDtm_crt(cursor.isNull(offset + 4) ? null : new java.util.Date(cursor.getLong(offset + 4)));
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected String updateKeyAfterInsert(Broadcast entity, long rowId) {
|
||||
return entity.getUuid_broadcast();
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public String getKey(Broadcast entity) {
|
||||
if(entity != null) {
|
||||
return entity.getUuid_broadcast();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected boolean isEntityUpdateable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue