parent
b8eb4d0ced
commit
cce95d51a6
@ -0,0 +1,312 @@ |
||||
package com.unionmed.unionmedtv.api; |
||||
|
||||
|
||||
import androidx.annotation.NonNull; |
||||
|
||||
import com.hjq.http.config.IRequestApi; |
||||
import com.hjq.http.config.IRequestType; |
||||
import com.hjq.http.model.BodyType; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* desc : 账号登录 |
||||
*/ |
||||
public final class VersionUpLoadApi implements IRequestApi, IRequestType{ |
||||
|
||||
|
||||
/** |
||||
* protocol : [{"name":"法律声明及隐私政策","value":"https://mobile.union-med.net/LegalStatement.html"},{"name":"个人用户服务协议","value":"https://mobile.union-med.net/PersonalDelegate.html"},{"name":"平台医生服务协议","value":"https://mobile.union-med.net/DoctorDelegate.html"},{"name":"康联健康服务平台用户支付服务协议","value":"https://mobile.union-med.net/PaymentAgreement.html"},{"name":"医疗机构服务协议","value":"https://mobile.union-med.net/HospitalService.html"}] |
||||
* route : [{"pkey":"17","ip":"23.86.174.181","port":"8085","fmsvr":"rtmp://10.120.224.5/livepkgr/","msgsvr":"http://120.195.56.245:3190/msg_server","ipsvr":"https://mini.union-med.net:8085/appintegrate/v1.8","type":"01","msgip":"120.195.56.245","oder_num":0,"memo":"越西","svalue":"rtmp://10.120.224.5/livepkgr/","filesvr":"https://mini.union-med.net:8085/eleand/"}] |
||||
* customerServicePhone : 400-998-169-8 |
||||
* ifNeedUpdate : 1 |
||||
* versionInfo : {"version_number":"1.0.1","client":"iptv","update_info":null,"release_time":"2023-09-11 00:00:00.0","is_force":"0","update_url":"http://47.118.51.167:9000/apk/unionhealthTV_1.0.1_09-11_10.37_release.apk","ifNeedUpdate":"1"} |
||||
*/ |
||||
|
||||
private String customerServicePhone; |
||||
private String ifNeedUpdate; |
||||
private VersionInfoBean versionInfo; |
||||
private List<ProtocolBean> protocol; |
||||
private List<RouteBean> route; |
||||
|
||||
@NonNull |
||||
@Override |
||||
public BodyType getBodyType() { |
||||
return BodyType.JSON; |
||||
} |
||||
|
||||
@NonNull |
||||
@Override |
||||
public String getApi() { |
||||
return "/login/getConfig"; |
||||
} |
||||
|
||||
public String getCustomerServicePhone() { |
||||
return customerServicePhone; |
||||
} |
||||
|
||||
public void setCustomerServicePhone(String customerServicePhone) { |
||||
this.customerServicePhone = customerServicePhone; |
||||
} |
||||
|
||||
public String getIfNeedUpdate() { |
||||
return ifNeedUpdate; |
||||
} |
||||
|
||||
public void setIfNeedUpdate(String ifNeedUpdate) { |
||||
this.ifNeedUpdate = ifNeedUpdate; |
||||
} |
||||
|
||||
public VersionInfoBean getVersionInfo() { |
||||
return versionInfo; |
||||
} |
||||
|
||||
public void setVersionInfo(VersionInfoBean versionInfo) { |
||||
this.versionInfo = versionInfo; |
||||
} |
||||
|
||||
public List<ProtocolBean> getProtocol() { |
||||
return protocol; |
||||
} |
||||
|
||||
public void setProtocol(List<ProtocolBean> protocol) { |
||||
this.protocol = protocol; |
||||
} |
||||
|
||||
public List<RouteBean> getRoute() { |
||||
return route; |
||||
} |
||||
|
||||
public void setRoute(List<RouteBean> route) { |
||||
this.route = route; |
||||
} |
||||
|
||||
|
||||
public static class VersionInfoBean { |
||||
/** |
||||
* version_number : 1.0.1 |
||||
* client : iptv |
||||
* update_info : null |
||||
* release_time : 2023-09-11 00:00:00.0 |
||||
* is_force : 0 |
||||
* update_url : http://47.118.51.167:9000/apk/unionhealthTV_1.0.1_09-11_10.37_release.apk
|
||||
* ifNeedUpdate : 1 |
||||
*/ |
||||
|
||||
private String version_number; |
||||
private String client; |
||||
private String update_info=""; |
||||
private String release_time; |
||||
private String is_force; |
||||
private String update_url; |
||||
private String ifNeedUpdate; |
||||
|
||||
public String getVersion_number() { |
||||
return version_number; |
||||
} |
||||
|
||||
public void setVersion_number(String version_number) { |
||||
this.version_number = version_number; |
||||
} |
||||
|
||||
public String getClient() { |
||||
return client; |
||||
} |
||||
|
||||
public void setClient(String client) { |
||||
this.client = client; |
||||
} |
||||
|
||||
public String getUpdate_info() { |
||||
return update_info; |
||||
} |
||||
|
||||
public void setUpdate_info(String update_info) { |
||||
this.update_info = update_info; |
||||
} |
||||
|
||||
public String getRelease_time() { |
||||
return release_time; |
||||
} |
||||
|
||||
public void setRelease_time(String release_time) { |
||||
this.release_time = release_time; |
||||
} |
||||
|
||||
public String getIs_force() { |
||||
return is_force; |
||||
} |
||||
|
||||
public void setIs_force(String is_force) { |
||||
this.is_force = is_force; |
||||
} |
||||
|
||||
public String getUpdate_url() { |
||||
return update_url; |
||||
} |
||||
|
||||
public void setUpdate_url(String update_url) { |
||||
this.update_url = update_url; |
||||
} |
||||
|
||||
public String getIfNeedUpdate() { |
||||
return ifNeedUpdate; |
||||
} |
||||
|
||||
public void setIfNeedUpdate(String ifNeedUpdate) { |
||||
this.ifNeedUpdate = ifNeedUpdate; |
||||
} |
||||
} |
||||
|
||||
public static class ProtocolBean { |
||||
/** |
||||
* name : 法律声明及隐私政策 |
||||
* value : https://mobile.union-med.net/LegalStatement.html
|
||||
*/ |
||||
|
||||
private String name; |
||||
private String value; |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getValue() { |
||||
return value; |
||||
} |
||||
|
||||
public void setValue(String value) { |
||||
this.value = value; |
||||
} |
||||
} |
||||
|
||||
public static class RouteBean { |
||||
/** |
||||
* pkey : 17 |
||||
* ip : 23.86.174.181 |
||||
* port : 8085 |
||||
* fmsvr : rtmp://10.120.224.5/livepkgr/
|
||||
* msgsvr : http://120.195.56.245:3190/msg_server
|
||||
* ipsvr : https://mini.union-med.net:8085/appintegrate/v1.8
|
||||
* type : 01 |
||||
* msgip : 120.195.56.245 |
||||
* oder_num : 0 |
||||
* memo : 越西 |
||||
* svalue : rtmp://10.120.224.5/livepkgr/
|
||||
* filesvr : https://mini.union-med.net:8085/eleand/
|
||||
*/ |
||||
|
||||
private String pkey; |
||||
private String ip; |
||||
private String port; |
||||
private String fmsvr; |
||||
private String msgsvr; |
||||
private String ipsvr; |
||||
private String type; |
||||
private String msgip; |
||||
private int oder_num; |
||||
private String memo; |
||||
private String svalue; |
||||
private String filesvr; |
||||
|
||||
public String getPkey() { |
||||
return pkey; |
||||
} |
||||
|
||||
public void setPkey(String pkey) { |
||||
this.pkey = pkey; |
||||
} |
||||
|
||||
public String getIp() { |
||||
return ip; |
||||
} |
||||
|
||||
public void setIp(String ip) { |
||||
this.ip = ip; |
||||
} |
||||
|
||||
public String getPort() { |
||||
return port; |
||||
} |
||||
|
||||
public void setPort(String port) { |
||||
this.port = port; |
||||
} |
||||
|
||||
public String getFmsvr() { |
||||
return fmsvr; |
||||
} |
||||
|
||||
public void setFmsvr(String fmsvr) { |
||||
this.fmsvr = fmsvr; |
||||
} |
||||
|
||||
public String getMsgsvr() { |
||||
return msgsvr; |
||||
} |
||||
|
||||
public void setMsgsvr(String msgsvr) { |
||||
this.msgsvr = msgsvr; |
||||
} |
||||
|
||||
public String getIpsvr() { |
||||
return ipsvr; |
||||
} |
||||
|
||||
public void setIpsvr(String ipsvr) { |
||||
this.ipsvr = ipsvr; |
||||
} |
||||
|
||||
public String getType() { |
||||
return type; |
||||
} |
||||
|
||||
public void setType(String type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
public String getMsgip() { |
||||
return msgip; |
||||
} |
||||
|
||||
public void setMsgip(String msgip) { |
||||
this.msgip = msgip; |
||||
} |
||||
|
||||
public int getOder_num() { |
||||
return oder_num; |
||||
} |
||||
|
||||
public void setOder_num(int oder_num) { |
||||
this.oder_num = oder_num; |
||||
} |
||||
|
||||
public String getMemo() { |
||||
return memo; |
||||
} |
||||
|
||||
public void setMemo(String memo) { |
||||
this.memo = memo; |
||||
} |
||||
|
||||
public String getSvalue() { |
||||
return svalue; |
||||
} |
||||
|
||||
public void setSvalue(String svalue) { |
||||
this.svalue = svalue; |
||||
} |
||||
|
||||
public String getFilesvr() { |
||||
return filesvr; |
||||
} |
||||
|
||||
public void setFilesvr(String filesvr) { |
||||
this.filesvr = filesvr; |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 141 KiB |
@ -0,0 +1,10 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<item> |
||||
<shape android:shape="rectangle"> |
||||
<solid android:color="#0BBAC6"/> |
||||
<corners android:radius="16dp" /> |
||||
</shape> |
||||
</item> |
||||
|
||||
</layer-list> |
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<item android:drawable="@drawable/bg_focus_6" android:state_focused="true"/> |
||||
<item android:drawable="@drawable/btn_update_bg" /> |
||||
</selector> |
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<corners android:radius="16dp"/> |
||||
<solid android:color="#F5F6F8"/> |
||||
</shape> |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.4 KiB |
@ -0,0 +1,97 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:layout_width="480dp" |
||||
android:layout_height="wrap_content" |
||||
tools:ignore="MissingPrefix" |
||||
android:orientation="vertical"> |
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:background="@drawable/bg_custom_update" |
||||
android:paddingBottom="15dp"> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_update_title" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="180dp" |
||||
android:textColor="@color/text_title" |
||||
android:textSize="18sp" |
||||
android:textStyle="bold" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintHorizontal_bias="0.502" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:text="版本更新啦!" /> |
||||
|
||||
<ScrollView |
||||
android:id="@+id/scrollView2" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="150dp" |
||||
android:layout_marginTop="30dp" |
||||
android:overScrollMode="never" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/tv_update_title"> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_update_content" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="top" |
||||
android:gravity="start" |
||||
android:lineSpacingExtra="5dp" |
||||
android:paddingLeft="20dp" |
||||
android:paddingRight="20dp" |
||||
android:textColor="@color/text_content" |
||||
android:textSize="14sp" |
||||
tools:text="1、快来升级最新版本\" /> |
||||
</ScrollView> |
||||
|
||||
<TextView |
||||
style="@style/FocusStyle" |
||||
android:focusable="true" |
||||
android:id="@+id/btn_update_sure" |
||||
android:layout_width="192dp" |
||||
android:layout_height="32dp" |
||||
android:layout_marginStart="20dp" |
||||
android:layout_marginTop="10dp" |
||||
android:layout_marginEnd="20dp" |
||||
android:background="@drawable/bg_focus_selector_6" |
||||
android:gravity="center" |
||||
android:text="@string/update_now" |
||||
android:textColor="@color/colorBlack" |
||||
android:textSize="14sp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/scrollView2" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_version_name" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="100dp" |
||||
android:layout_marginEnd="15dp" |
||||
android:textColor="@color/white" |
||||
android:textSize="16sp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:text="V1.0.0" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
||||
<ImageView |
||||
android:layout_marginTop="20dp" |
||||
android:id="@+id/btn_update_cancel" |
||||
android:layout_width="30dp" |
||||
android:layout_gravity="center_horizontal" |
||||
android:layout_height="30dp" |
||||
style="@style/FocusStyle" |
||||
app:bl_focused_drawable="@drawable/ic_version_close_choose" |
||||
app:bl_unFocused_drawable="@drawable/ic_version_close" |
||||
/> |
||||
</LinearLayout> |
||||
|
Loading…
Reference in new issue