Commit ba759519 by huahua

第一次提交

parent 1bdd066c
# Built application files
*.apk
*.ap_
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# Intellij
*.iml
.idea/workspace.xml
.idea/libraries
# Keystore files
*.jks
\ No newline at end of file
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="$USER_HOME$/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx/gradle-5.4.1" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/hbanner" />
<option value="$PROJECT_DIR$/library_update" />
<option value="$PROJECT_DIR$/loadingdialog" />
<option value="$PROJECT_DIR$/sticker" />
<option value="$PROJECT_DIR$/wheelsruflibrary" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven2" />
<option name="name" value="maven2" />
<option name="url" value="http://maven.aliyun.com/nexus/content/repositories/releases" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://jitpack.io" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/app.iml" filepath="$PROJECT_DIR$/.idea/modules/app/app.iml" group="noDiyPhone/app" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/hbanner/hbanner.iml" filepath="$PROJECT_DIR$/.idea/modules/hbanner/hbanner.iml" group="noDiyPhone/hbanner" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/library_update/library_update.iml" filepath="$PROJECT_DIR$/.idea/modules/library_update/library_update.iml" group="noDiyPhone/library_update" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/loadingdialog/loadingdialog.iml" filepath="$PROJECT_DIR$/.idea/modules/loadingdialog/loadingdialog.iml" group="noDiyPhone/loadingdialog" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/noDiyPhone.iml" filepath="$PROJECT_DIR$/.idea/modules/noDiyPhone.iml" group="noDiyPhone" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/sticker/sticker.iml" filepath="$PROJECT_DIR$/.idea/modules/sticker/sticker.iml" group="noDiyPhone/sticker" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/wheelsruflibrary/wheelsruflibrary.iml" filepath="$PROJECT_DIR$/.idea/modules/wheelsruflibrary/wheelsruflibrary.iml" group="noDiyPhone/wheelsruflibrary" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
//apply plugin: 'mtj-circle-plugin'
def releaseTime() {
def date = new Date()
def versionCode = date.format('yyyyMMddHHmmss')
return versionCode
}
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "live.nodiyphoneshell.cend"
minSdkVersion 16
targetSdkVersion 27
versionCode 10807
versionName "1.0807"
multiDexEnabled true
ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" }
}
signingConfigs {
debug {
storeFile file("keystore/rephen.jks")
storePassword "ma295965"
keyAlias "rephen_cend"
keyPassword "ma295965"
v1SigningEnabled true
v2SigningEnabled true
}
release {
storeFile file("keystore/rephen.jks")
storePassword "ma295965"
keyAlias "rephen_cend"
keyPassword "ma295965"
v1SigningEnabled true
v2SigningEnabled true
}
}
buildTypes {
debug {
buildConfigField "boolean", "LOG_DEBUG", "true"
minifyEnabled true
zipAlignEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
release {
buildConfigField "boolean", "LOG_DEBUG", "false"
minifyEnabled true
zipAlignEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
android.applicationVariants.all { variant ->
def versionCode = 'V' + variant.getVersionName()//版本号
variant.outputs.all {
if (variant.buildType.name == 'release') {
outputFileName = "nodiyphoneshell_" + versionCode + "_${releaseTime()}_release.apk" //apk输出目录
} else if (variant.buildType.name == 'debug') {
outputFileName = "nodiyphoneshell_" + versionCode + "_${releaseTime()}_debug.apk"
}
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/fresco.properties'
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
dexOptions {
//javaMaxHeapSize "4g"
//dexInProcess true
//preDexLibraries true
javaMaxHeapSize "6g"
}
aaptOptions {
cruncherEnabled = false
}
lintOptions {
disable 'MissingTranslation'
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
/*MtjCirclePluginConfig {
//设置appkey
appkey = 'abad93ee16'
debug = false
enabled = true
}*/
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.ashokvarma.android:bottom-navigation-bar:1.3.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.0.1'
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
annotationProcessor 'androidx.annotation:annotation:1.0.0'
api 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.9.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
implementation 'com.zhy:okhttputils:2.6.2'
implementation 'com.google.code.gson:gson:2.8.0'
implementation project(':loadingdialog')
implementation project(path: ':library_update')
implementation 'com.alibaba:fastjson:1.2.25'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.google.zxing:core:3.3.0'
implementation 'com.aliyun.dpa:oss-android-sdk:+'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.71'
implementation 'com.joooonho:selectableroundedimageview:1.0.1'
implementation 'com.orhanobut:logger:2.2.0'
//使用Android生命周期作为提供者
implementation 'com.trello.rxlifecycle2:rxlifecycle-android-lifecycle:2.2.2'
implementation 'android.arch.work:work-runtime:1.0.0-alpha12'
implementation 'com.zzhoujay.richtext:richtext:3.0.7'
implementation 'org.jsoup:jsoup:1.10.2'
implementation 'me.jessyan:autosize:1.2.1'
implementation files('libs/bugly_crash_release.jar')
implementation 'com.aliyun.ams:alicloud-android-utdid:2.5.1-proguard'
implementation project(path: ':wheelsruflibrary')
implementation project(path: ':hbanner')
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'net.frakbot:jumpingbeans:1.3.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.yinhaide:HDMediaPlayer:0.1.2'
implementation 'me.samlss:bloom:1.0.0'
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html >
<meta charset="utf-8">
<body style="color: transparent;width:100%;height:100%;">
<div onclick="startfireworks()">点击开始</div>
<script>
var raf = (function() {
var TIME = Math.floor(1000 / 60);
var frame, cancel;
var frames = {};
var lastFrameTime = 0;
if (typeof requestAnimationFrame === 'function' && typeof cancelAnimationFrame === 'function') {
frame = function(cb) {
var id = Math.random();
frames[id] = requestAnimationFrame(function onFrame(time) {
if (lastFrameTime === time || lastFrameTime + TIME - 1 < time) {
lastFrameTime = time;
delete frames[id];
cb();
} else {
frames[id] = requestAnimationFrame(onFrame);
}
});
return id;
};
cancel = function(id) {
if (frames[id]) {
cancelAnimationFrame(frames[id]);
}
};
} else {
frame = function(cb) {
return setTimeout(cb, TIME);
};
cancel = function(timer) {
return clearTimeout(timer);
};
}
return {
frame: frame,
cancel: cancel
};
}());
function toDecimal(str) {
return parseInt(str, 16);
}
function hexToRgb(str) {
var val = String(str).replace(/[^0-9a-f]/gi, '');
if (val.length < 6) {
val = val[0] + val[0] + val[1] + val[1] + val[2] + val[2];
}
return {
r: toDecimal(val.substring(0, 2)),
g: toDecimal(val.substring(2, 4)),
b: toDecimal(val.substring(4, 6))
};
}
function updateFetti(context, fetti) {
var progress = (fetti.tick++) / fetti.totalTicks;
if (progress > 1) {
return;
}
fetti.x += Math.cos(fetti.angle2D) * fetti.velocity; // 左下角
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + fetti.gravity; // 左下角
fetti.velocity *= fetti.decay;
fetti.tiltAngle += 0.1;
fetti.tiltSin = Math.sin(fetti.tiltAngle);
fetti.tiltCos = Math.cos(fetti.tiltAngle);
fetti.random = Math.random() + 7;
var x1 = fetti.x;
var y1 = fetti.y;
var x2 = fetti.x + (fetti.random * fetti.tiltCos); // 左上角
var y2 = fetti.y + (fetti.random * fetti.tiltSin); // 左上角
var x3 = x2 + fetti.random;
var y3 = y2;
var x4 = fetti.x + fetti.random;
var y4 = fetti.y;
context.fillStyle = 'rgba(' + fetti.color.r + ', ' + fetti.color.g + ', ' + fetti.color.b + ', ' + (1 - progress) +
')';
context.beginPath();
context.moveTo(Math.floor(x1), Math.floor(y1));
context.lineTo(Math.floor(x2), Math.floor(y2));
context.lineTo(Math.floor(x3), Math.floor(y3));
context.lineTo(Math.floor(x4), Math.floor(y4));
context.closePath();
context.fill();
return fetti.tick < fetti.totalTicks;
}
function getCanvas(zIndex) {
var canvas = document.createElement('canvas');
canvas.style.position = 'fixed';
canvas.style.top = '0px';
canvas.style.left = '0px';
canvas.style.pointerEvents = 'none';
canvas.style.zIndex = zIndex;
return canvas;
}
function setCanvasWindowSize(canvas) {
canvas.width = document.documentElement.clientWidth;
canvas.height = document.documentElement.clientHeight;
}
const canvas = getCanvas(200);
setCanvasWindowSize(canvas);
document.body.appendChild(canvas);
var context = canvas.getContext('2d');
const colors = [
'#26ccff',
'#a25afd',
'#ff5e7e',
'#88ff5a',
'#fcff42',
'#ffa62d',
'#ff36ff',
'#7f7522',
'#2e3a1f',
'#181d4b',
'#0c212b',
'#d71345'
];
var arr = []
for (let i = 0; i < 20; i++) {
arr.push({
"x": 0,
"y": document.documentElement.clientHeight / 3,
"velocity": (45 * 0.5) + (Math.random() * 20),
"angle2D": 3 / 2 * Math.PI + Math.random() * 1 / 4 * Math.PI,
"tiltAngle": Math.random() * Math.PI,
"color": hexToRgb(colors[Math.floor(Math.random() * 12)]),
"tick": 0,
"totalTicks": 200,
"decay": 0.9,
"random": 0,
"tiltSin": 0,
"tiltCos": 0,
"gravity": 3,
"scalar": 1
})
}
var animationFrame = null;
function update() {
context.clearRect(0, 0, canvas.width, canvas.height);
arr = arr.filter(item => {
return updateFetti(context, item);
});
if (arr.length) {
animationFrame = raf.frame(update);
}
}
function startfireworks() {
alert("进来")
if (!animationFrame) {
//alert("进来")
animationFrame = raf.frame(update);
} else {
//alert("进来下面")
for (let i = 0; i < 20; i++) {
arr.push({
"x": 0,
//"y": 500,
"y": document.documentElement.clientHeight / 3,
"velocity": (45 * 0.5) + (Math.random() * 20),
"angle2D": 3 / 2 * Math.PI + Math.random() * 1 / 4 * Math.PI,
"tiltAngle": Math.random() * Math.PI,
"color": hexToRgb(colors[Math.floor(Math.random() * 12)]),
"tick": 100,
"totalTicks": 200,
"decay": 0.9,
"random": 0,
"tiltSin": 0,
"tiltCos": 0,
"gravity": 3,
"scalar": 1
})
}
}
}
start.onclick = () => {
if (!animationFrame) {
animationFrame = raf.frame(update);
} else {
for (let i = 0; i < 20; i++) {
arr.push({
"x": 0,
"y": document.documentElement.clientHeight / 3,
"velocity": (45 * 0.5) + (Math.random() * 20),
"angle2D": 3 / 2 * Math.PI + Math.random() * 1 / 4 * Math.PI,
"tiltAngle": Math.random() * Math.PI,
"color": hexToRgb(colors[Math.floor(Math.random() * 12)]),
"tick": 0,
"totalTicks": 200,
"decay": 0.9,
"random": 0,
"tiltSin": 0,
"tiltCos": 0,
"gravity": 3,
"scalar": 1
})
}
}
}
</script>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
//JS代码
<script>
//Android需要调用的方法
function callJS(color){
if(color == "" || color == null || color == undefined){
return "";
}
var values = color
.replace(/rgba?\(/, '')
.replace(/\)/, '')
.replace(/[\s+]/g, '')
.split(',')
var a = parseFloat(values[3] || 1),
r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
return '#' +
('0' + r.toString(16)).slice(-2) +
('0' + g.toString(16)).slice(-2) +
('0' + b.toString(16)).slice(-2)
}
</script>
</head>
</html>
\ No newline at end of file
package live.nodiyphoneshell.cend;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.os.Build;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.ActivityCompat;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import butterknife.ButterKnife;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
import live.nodiyphoneshell.cend.websocket.XYDClient;
import me.jessyan.autosize.AutoSizeCompat;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
* 所有Activity的基类
*/
public abstract class BaseActivity extends AppCompatActivity {
private final int permissionRequestCode = 110;
private PermissionCall mPermissionCall;
private boolean IsMainActivity = false;
/**
* [绑定视图]
* @return
*/
protected abstract int initLayout();
protected abstract void initData(); //加载数据
protected abstract void initView(); //初始化视图
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ScreenUtils.setDensityByWidth(this, getApplication());
setContentView(initLayout()); //重点是这句
ButterKnife.bind(this);
initView();
initData();
}
@Override
protected void onStart() {
super.onStart();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
protected void onRestart() {
super.onRestart();
}
@Override
protected void onResume() {
super.onResume();
if(!IsMainActivity) {
XYDClient.getInstance(this).init();
}
}
@Override
protected void onPause() {
super.onPause();
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
/**
* 对子类提供的申请权限方法
* @param permissions 申请的权限
*/
public void requestRunTimePermissions(String[] permissions, PermissionCall call) {
if (permissions == null || permissions.length == 0)
return;
mPermissionCall = call;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (checkPermissionGranted(permissions)) {
mPermissionCall.requestSuccess();
} else {
requestPermission(permissions, permissionRequestCode);
}
} else {
mPermissionCall.requestSuccess();
}
}
public boolean checkPermissionGranted(String... permissions) {
boolean result = true;
for (String p : permissions) {
if (ContextCompat.checkSelfPermission(this, p) != PackageManager.PERMISSION_GRANTED) {
result = false;
break;
}
}
return result;
}
private boolean shouldShowRequestPermissionRationale(String[] permissions) {
boolean flag = false;
for (String p : permissions) {
if (ActivityCompat.shouldShowRequestPermissionRationale(this, p)) {
flag = true;
break;
}
}
return flag;
}
private void requestPermission(final String[] permissions, final int requestCode) {
if (shouldShowRequestPermissionRationale(permissions)) {
new AlertDialog.Builder(this)
.setTitle(R.string.attention)
.setMessage(R.string.content_to_request_permission)
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
ActivityCompat.requestPermissions(BaseActivity.this, permissions, requestCode);
}
}).show();
} else {
ActivityCompat.requestPermissions(this, permissions, permissionRequestCode);
}
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == permissionRequestCode) {
if (verifyPermissions(grantResults)) {
if (mPermissionCall != null) {
mPermissionCall.requestSuccess();
mPermissionCall = null;
}
} else {
requestPermission(permissions, permissionRequestCode);
if (mPermissionCall != null) {
mPermissionCall.refused();
mPermissionCall = null;
}
}
} else {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
public boolean verifyPermissions(int[] grantResults) {
if (grantResults.length < 1) {
return false;
}
for (int result : grantResults) {
if (result != PackageManager.PERMISSION_GRANTED) {
return false;
}
}
return true;
}
public interface PermissionCall {
//申请成功
void requestSuccess();
//拒绝
void refused();
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
return super.dispatchTouchEvent(ev);
}
//根据EditText所在坐标和用户点击的坐标相对比,来判断是否隐藏键盘
private boolean HideKeyboard(View view, MotionEvent event) {
if (view != null && (view instanceof EditText)) {
int[] location = {0, 0};
view.getLocationInWindow(location);
//获取现在拥有焦点的控件view的位置,即EditText
int left = location[0], top = location[1], bottom = top + view.getHeight(), right = left + view.getWidth();
//判断我们手指点击的区域是否落在EditText上面,如果不是,则返回true,否则返回false
boolean isInEt = (event.getX() > left && event.getX() < right && event.getY() > top
&& event.getY() < bottom);
return !isInEt;
}
return false;
}
/**
* 2* 隐藏软键盘
* 3* @param v4
*/
public void hideSoftKeyboard(View v) {
InputMethodManager imm = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
}
@Override
public Resources getResources() {
AutoSizeCompat.autoConvertDensityOfGlobal((super.getResources()));//如果没有自定义需求用这个方法
return super.getResources();
}
}
package live.nodiyphoneshell.cend;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
* 所有的Fragment的基类
*/
public class BaseFragment extends Fragment{
protected FragmentActivity parent;
protected boolean isVisible;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return super.onCreateView(inflater, container, savedInstanceState);
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void onPause() {
super.onPause();
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
parent = (FragmentActivity) context;
}
/* @Override
public void onAttach(Context context) {
if (context instanceof OnCoverChangeListener) {
mListener = (ABC_Listener) context;
} else {
throw new RuntimeException(context.toString()
+ " must implement ABC_Listener");
}
super.onAttach(context);
}*/
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if(getUserVisibleHint()) {
isVisible = true;
} else {
isVisible = false;
}
}
@Override
public void onDestroyView() {
super.onDestroyView();
}
@Override
public void onDestroy() {
super.onDestroy();
}
}
package live.nodiyphoneshell.cend;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.ActivityCompat;
import androidx.appcompat.app.AppCompatActivity;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
* 所有Activity的基类
*/
public class BaseMianActivity extends AppCompatActivity {
//静态变量,在 PicassoTarget 中修改 status 颜色时也动态修改
public static int currentStatusColor;
private final int permissionRequestCode = 110;
private PermissionCall mPermissionCall;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ScreenUtils.setDensityByWidth(this, getApplication());
// ScreenUtils.setCustomDensity(this);
}
@Override
protected void onRestart() {
super.onRestart();
}
@Override
protected void onStart() {
super.onStart();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onPause() {
super.onPause();
//页面结束
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
/*处理权限问题*/
/**
* 对子类提供的申请权限方法
* @param permissions 申请的权限
*/
public void requestRunTimePermissions(String[] permissions, PermissionCall call) {
if (permissions == null || permissions.length == 0)
return;
mPermissionCall = call;
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.M) || checkPermissionGranted(permissions)) {
//提示已经拥有权限
mPermissionCall.requestSuccess();
} else {
//申请权限
requestPermission(permissions, permissionRequestCode);
}
}
public boolean checkPermissionGranted(String... permissions) {
boolean result = true;
for (String p : permissions) {
if (ActivityCompat.checkSelfPermission(this, p) != PackageManager.PERMISSION_GRANTED) {
result = false;
break;
}
}
return result;
}
private boolean shouldShowRequestPermissionRationale(String[] permissions) {
boolean flag = false;
for (String p : permissions) {
if (ActivityCompat.shouldShowRequestPermissionRationale(this, p)) {
flag = true;
break;
}
}
return flag;
}
private void requestPermission(final String[] permissions, final int requestCode) {
if (shouldShowRequestPermissionRationale(permissions)) {
new AlertDialog.Builder(this)
.setTitle(R.string.attention)
.setMessage(R.string.content_to_request_permission)
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
ActivityCompat.requestPermissions(BaseMianActivity.this, permissions, requestCode);
}
}).show();
} else {
ActivityCompat.requestPermissions(this, permissions, permissionRequestCode);
}
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == permissionRequestCode) {
if (verifyPermissions(grantResults)) {
mPermissionCall.requestSuccess();
mPermissionCall = null;
} else {
mPermissionCall.refused();
mPermissionCall = null;
}
} else {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
public boolean verifyPermissions(int[] grantResults) {
// At least one result must be checked.
if (grantResults.length < 1) {
return false;
}
// Verify that each required permission has been granted, otherwise return false.
for (int result : grantResults) {
if (result != PackageManager.PERMISSION_GRANTED) {
return false;
}
}
return true;
}
public interface PermissionCall {
//申请成功
void requestSuccess();
//拒绝
void refused();
}
}
package live.nodiyphoneshell.cend;
import android.content.Context;
import android.text.TextUtils;
import com.android.tu.loadingdialog.LoadingDailog;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
* 所有的Presenter都继承自此Presenter
*/
public class BasePresenter {
//将所有正在处理的Subscription都添加到CompositeSubscription中。统一退出的时候注销观察
private LoadingDailog.Builder loadBuilder;
private LoadingDailog dialog;
public void showLoad(Context context) {
try {
if(context==null){
return;
}
if (loadBuilder == null) {
loadBuilder = new LoadingDailog.Builder(context)
.setMessage("加载中...")
.setCancelable(true)
.setCancelOutside(true);
dialog = loadBuilder.create();
}
dialog.show();
}catch (Exception e){
}
}
public void showLoad(Context context,String message) {
try {
if(context==null){
return;
}
if (TextUtils.isEmpty(message)) {
message = "加载中...";
}
if (loadBuilder == null) {
loadBuilder = new LoadingDailog.Builder(context)
.setMessage(message)
.setCancelable(true)
.setCancelOutside(true);
dialog = loadBuilder.create();
} else {
loadBuilder.setMessage(message);
dialog = loadBuilder.create();
}
dialog.show();
}catch (Exception e){
}
}
public void closeLoad() {
try {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
}catch (Exception e){
}
}
}
package live.nodiyphoneshell.cend;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import io.reactivex.disposables.CompositeDisposable;
/**
* Created by Administrator on 2019/9/7.
*/
public abstract class BaseTabFragment extends Fragment {
protected boolean isInit = false;//视图是否已经初初始化
protected boolean isLoad = false;//是否加载
protected final String TAG = "BaseFragment";
private View view;//视图
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
view = inflater.inflate(setContentView(), container, false);
ButterKnife.bind(this, view);
isInit = true;
initData();
/**初始化的时候去加载数据**/
isCanLoadData();
return view;
}
/**
* 视图是否可见
*/
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
isCanLoadData();
}
/**
* 是否可以加载数据
*/
private void isCanLoadData() {
if (!isInit) {
return;
}
if (getUserVisibleHint()) {
startLoad();
isLoad = true;
} else {
if (isLoad) {
stopLoad();
}
}
}
@Override
public void onDestroyView() {
super.onDestroyView();
isInit = false;
isLoad = false;
}
protected View getContentView() {
return view;
}
/**
* findViewById
*/
protected <T extends View> T findViewById(int id) {
return (T) getContentView().findViewById(id);
}
protected abstract int setContentView();//显示的布局
protected abstract void startLoad();//加载数据
protected abstract void initData();//初始化数据
/**
* 当视图不可见并且加载过数据,调用此方法
*/
protected void stopLoad() {
}
}
\ No newline at end of file
package live.nodiyphoneshell.cend;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import androidx.multidex.MultiDex;
import live.nodiyphoneshell.cend.utils.UtilInterptor;
import com.tencent.bugly.crashreport.CrashReport;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.https.HttpsUtils;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
*/
public class CustomApplication extends Application {
public static CustomApplication sApplication;
public static ArrayList<Activity> activitys = new ArrayList<Activity>();
@Override
public void onCreate() {
super.onCreate();
if (sApplication == null) {
sApplication = this;
}
HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory(null, null, null);
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(new UtilInterptor())
.sslSocketFactory(sslParams.sSLSocketFactory, sslParams.trustManager)
.connectTimeout(13, TimeUnit.SECONDS)
.readTimeout(13, TimeUnit.SECONDS)
.retryOnConnectionFailure(false)
.build();
OkHttpUtils.initClient(okHttpClient);
CrashReport.initCrashReport(getApplicationContext());
}
public static Context getContext() {
return sApplication.getApplicationContext();
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
public static void allfinish() {
for (Activity activity : activitys) {
activity.finish();
}
}
}
package live.nodiyphoneshell.cend.activities;
import live.nodiyphoneshell.cend.modules.MachineInitRewriteBean;
import live.nodiyphoneshell.cend.modules.VideoBean;
/**
* Created by MaYangHua on 2020/7/03.
* 295965650@qq.com
*/
public interface MainContract {
interface View {
void getMachineInit(String id);
void getMachineInitSuccessed(String data);
void getMachineInitFail();
void getBanner(String partner_id, String ad_position_key);
void getBannerSuccessed(String data);
void upLoadVideo(MachineInitRewriteBean.DataBean.VideoBean videoBean);
void upLoadVideoSuccessed(MachineInitRewriteBean.DataBean.VideoBean videoBean, String data);
void updateUpLoadVideo(VideoBean videoBean);
void updateUpLoadVideoSuccessed(VideoBean videoBean, String data);
}
interface Presenter {
void getMachineInit(String id);
void getBanner(String partner_id, String ad_position_key);
void upLoadVideo(MachineInitRewriteBean.DataBean.VideoBean videoBean);
void updateUpLoadVideo(VideoBean videoBean);
}
}
package live.nodiyphoneshell.cend.activities;
import android.content.Context;
import android.os.Environment;
import com.cretin.www.wheelsruflibrary.view.LotteryBean;
import com.cretin.www.wheelsruflibrary.view.WheelSurfView;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.FileCallBack;
import java.io.File;
import java.util.List;
import live.nodiyphoneshell.cend.BasePresenter;
import live.nodiyphoneshell.cend.config.Config;
import live.nodiyphoneshell.cend.modules.MachineInitRewriteBean;
import live.nodiyphoneshell.cend.modules.VideoBean;
import live.nodiyphoneshell.cend.utils.CommonUtil;
import live.nodiyphoneshell.cend.utils.MyStringCallback;
import live.nodiyphoneshell.cend.utils.SPUtils;
import live.nodiyphoneshell.cend.websocket.XYDClient;
import okhttp3.Call;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
*/
public class MainPresenter extends BasePresenter implements MainContract.Presenter {
private MainContract.View perFrag;
private Context context;
public MainPresenter(MainContract.View perFrag, Context context) {
this.perFrag = perFrag;
this.context = context;
}
@Override
public void getMachineInit(String id/*,String partner_id*/) {
showLoad(context);
OkHttpUtils.post()
.addParams("id", id)
.addParams("ad_position_key", "phone_shell_index")
.url(Config.MACHINE_INIT)
.build()
.execute(new MyStringCallback() {
@Override
public void onError(Call call, Exception e, int id) {
closeLoad();
perFrag.getMachineInitFail();
}
@Override
public void onResponse(String response, int id) {
closeLoad();
perFrag.getMachineInitSuccessed(response);
}
});
}
@Override
public void getBanner(String partner_id, String ad_position_key) {
showLoad(context);
OkHttpUtils.get()
.addParams("partner_id", partner_id)
.addParams("ad_position_key", ad_position_key)
.addParams("machine_id", SPUtils.getStringValue("machine_code", ""))
.url(Config.BANNER_URL)
.build()
.execute(new MyStringCallback() {
@Override
public void onError(Call call, Exception e, int id) {
CommonUtil.isNetWorkAndServer(context);
closeLoad();
}
@Override
public void onResponse(String response, int id) {
closeLoad();
perFrag.getBannerSuccessed(response);
}
});
}
@Override
public void upLoadVideo(MachineInitRewriteBean.DataBean.VideoBean videoBean) {
XYDClient.getInstance(context).saveFileText("下载视频文件","开始下载....");
OkHttpUtils.get().url(videoBean.getContent())
.build().execute(new FileCallBack(Environment.getExternalStorageDirectory().getAbsolutePath(),
"VideoName"+System.currentTimeMillis()+".mp4") {
@Override
public void onError(Call call, Exception e, int id) {
XYDClient.getInstance(context).saveFileText("下载视频文件","失败下载");
}
@Override
public void onResponse(File response, int id) {
XYDClient.getInstance(context).saveFileText("下载视频文件","成功下载");
perFrag.upLoadVideoSuccessed(videoBean,response.getAbsolutePath());
}
});
}
@Override
public void updateUpLoadVideo(VideoBean videoBean) {
XYDClient.getInstance(context).saveFileText("推送更新视频文件","开始下载....");
OkHttpUtils.get().url(videoBean.getContent())
.build().execute(new FileCallBack(Environment.getExternalStorageDirectory().getAbsolutePath(),
"VideoName"+System.currentTimeMillis()+".mp4") {
@Override
public void onError(Call call, Exception e, int id) {
XYDClient.getInstance(context).saveFileText("推送更新视频文件","失败下载");
}
@Override
public void onResponse(File response, int id) {
XYDClient.getInstance(context).saveFileText("推送更新视频文件","成功下载");
perFrag.updateUpLoadVideoSuccessed(videoBean,response.getAbsolutePath());
//Log.i("upLoadVideo",response.getAbsolutePath());
}
});
}
}
package live.nodiyphoneshell.cend.activities;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.ImageView;
import butterknife.BindView;
import butterknife.ButterKnife;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.rxbus.RxUpLoadApkTimer;
import live.nodiyphoneshell.cend.utils.GlideCatchUtil;
import live.nodiyphoneshell.cend.utils.SPUtils;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
import live.nodiyphoneshell.cend.view.machine.MachineCodeActivity;
/**
* Created by MaYangHua on 2017/2/21.
* 闪屏页,优化启动体验
*/
public class SplashActivity extends AppCompatActivity {
@BindView(R.id.iv_background)
ImageView mIvBackground;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ScreenUtils.setDensityByWidth(this, getApplication());
setContentView(R.layout.activity_splash);
ButterKnife.bind(this);
GlideCatchUtil.getInstance().clearImageAllCache(this);
RxUpLoadApkTimer.getInstance(this).cancel();
launch();
}
private void launch() {
AlphaAnimation animation = new AlphaAnimation(0.1f, 1.0f);
animation.setDuration(900);
mIvBackground.startAnimation(animation);
animation.setAnimationListener(new AnimationImpl());
}
private class AnimationImpl implements Animation.AnimationListener {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
String machine_code = SPUtils.getStringValue("machine_code", "");
if (TextUtils.isEmpty(machine_code)) {
Intent intent = new Intent(SplashActivity.this, MachineCodeActivity.class);
startActivity(intent);
finish();
} else {
Intent intent = new Intent(SplashActivity.this, MainActivity.class);
startActivity(intent);
finish();
}
}
@Override
public void onAnimationRepeat(Animation animation) {
}
}
}
package live.nodiyphoneshell.cend.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.modules.FileLogText;
/**
* Created by ${麻阳华} on 2020/08/10.
*/
public class FileLogAdapter extends RecyclerView.Adapter<FileLogAdapter.MyViewHolder> {
private Context context;
private List<FileLogText> logTextList;
public FileLogAdapter(Context context, List<FileLogText> logTextList) {
this.logTextList = logTextList;
this.context = context;
}
public int getItemCount() {
return logTextList != null ? logTextList.size() : 0; /*homeList != null ? homeList.size() : 0;*/
}
public void updataView(List<FileLogText> logTextList) {
this.logTextList = logTextList;
notifyDataSetChanged();
}
@NonNull
@Override
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
View view = LayoutInflater.from(context).inflate(R.layout.layout_file_log, viewGroup, false);
MyViewHolder myViewHolder = new MyViewHolder(view);
return myViewHolder;
}
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, final int position) {
FileLogText fileLogText =logTextList.get(position);
holder.layout_file_log_list.setText(fileLogText.getTag()+": " +fileLogText.getContent());
}
@Override
public long getItemId(int position) {
return position;
}
class MyViewHolder extends RecyclerView.ViewHolder {
@BindView(R.id.layout_file_log_list)
TextView layout_file_log_list;
public MyViewHolder(View convertView) {
super(convertView);
ButterKnife.bind(this, convertView);
}
}
}
package live.nodiyphoneshell.cend.config;
/**
* Created by MaYangHua on 2020/7/03.
* 应用配置类,用于配置
*/
public class Config {
public static String URL_DOMAIN;
public static String MACHINE_INIT = null; //获取机器设备初始化信息
public static String PRODUCT_DETAIL = ""; //查询产品明细
public static String WECHAT_QRCODE = ""; //生成二维码
public static String MATERIAL_LIST = ""; //模板列表
public static String IMAGE_OSS_URL = "?x-oss-process=image/resize,lfit,w_";
public static String BANNER_URL = ""; //获取广告
public static int SEETING_TYEP = 6; //环境
public static String MACHINE_GETSTATUS = ""; //设置设备码
public static String GET_DETAIL_COVE_WITH; //获取图片宽度
static {
int type = 5;
SEETING_TYEP=type;
selectOnLineAndTest(type);
}
public static void selectOnLineAndTest(int type) {
SEETING_TYEP=type;
switch (type) {
case 5:
//测试环境
URL_DOMAIN = "https://tprint.refinecolor.com";
break;
case 6://正式环境
URL_DOMAIN = "https://tprint.colorpark.cn";
break;
default:
break;
}
MACHINE_INIT = URL_DOMAIN + "/phoneapi/machine/init";
PRODUCT_DETAIL = URL_DOMAIN + "/phoneapi/product/detail";
WECHAT_QRCODE = URL_DOMAIN + "/phoneapi/wechat/qrcode";
MATERIAL_LIST = URL_DOMAIN + "/phoneapi/material/list";
BANNER_URL = URL_DOMAIN + "/phoneapi/ad/list";
MACHINE_GETSTATUS = URL_DOMAIN + "/phoneapi/machine/isOnline";
GET_DETAIL_COVE_WITH= URL_DOMAIN + "/phoneapi/product/getDetailByOrderId";
}
}
package live.nodiyphoneshell.cend.config;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
*/
public class Constants {
public static final String SP_NAME = "SP_NAME";
public static final String MACHINE_SECRECT="5d5a1baa19693b4562d5c7b9bd1f3d01";
public static final String OSS_ACCESS_KEY_ID = "LTAI4GCq7iM8aUFM334kV3a5";
public static final String OSS_ACCESS_KEY_SECRET = "LQgAUIlzMH5nIYuttFGImPbSYSLeeA";
public static final String OSS_END_POINT = "http://oss-cn-shenzhen.aliyuncs.com";
public static final String OSS_IMAGE_URL = "http://rfc.oss-cn-shenzhen.aliyuncs.com/";
}
package live.nodiyphoneshell.cend.dialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import androidx.annotation.NonNull;
import butterknife.BindView;
import butterknife.ButterKnife;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
import live.nodiyphoneshell.cend.utils.ToastUtil;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/23 17:15
*/
public class DialogEnterBackDialog extends Dialog {
@BindView(R.id.layout_machine_home_back_code_text)
EditText layout_machine_home_back_code_text;
@BindView(R.id.layout_machine_home_back_bt)
Button layout_machine_home_back_bt;
private OnClickSaveListener onClickSaveListener;
public Dialog dialog;
public interface OnClickSaveListener {
void OnClickSaveButton();
}
public void setOnClickUpLoadListener(OnClickSaveListener onClickSaveListener) {
this.onClickSaveListener = onClickSaveListener;
}
private Context context;
public DialogEnterBackDialog(@NonNull Activity context) {
super(context);
this.context = context;
}
public void initView() {
View centerView = getLayoutInflater().inflate(R.layout.layout_home_enter_back, null);
setContentView(centerView);
ButterKnife.bind(this, centerView);
Window window = this.getWindow();
window.setGravity(Gravity.CENTER);
WindowManager.LayoutParams lp = window.getAttributes();
lp.width = ScreenUtils.dip2px(context, 245);
lp.height = ScreenUtils.dip2px(context, 180);
window.setBackgroundDrawableResource(R.color.transparent);
setCanceledOnTouchOutside(true);
layout_machine_home_back_bt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String passwordText = layout_machine_home_back_code_text.getText().toString().trim();
if("123518".equals(passwordText)){
if(onClickSaveListener!=null){
onClickSaveListener.OnClickSaveButton();
}
}else {
ToastUtil.show(context,"密码错误");
}
}
});
}
public void dismissDiaLog() {
dismiss();
}
}
package live.nodiyphoneshell.cend.dialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import com.yhd.mediaplayer.MediaPlayerHelper;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.SPUtils;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/23 17:15
*/
public class DialogErrorManager {
private static volatile DialogErrorManager intance;
public Dialog dialog;
public static DialogErrorManager getIntance() {
if (intance == null) {
synchronized (DialogErrorManager.class) {
if (intance == null)
intance = new DialogErrorManager();
}
}
return intance;
}
public void showError(Context ctx) {
MediaPlayerHelper.getInstance().playAssetMusic(ctx, "mp3/recovered_very_quick.mp3");
View vv = LayoutInflater.from(ctx).inflate(R.layout.layout_error_fault, null);
if (dialog == null) {
dialog = new AlertDialog.Builder(ctx).create();
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);
} else {
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_TOAST);
}
dialog.show();
dialog.setCancelable(false);
Window window = dialog.getWindow();
window.setBackgroundDrawableResource(R.color.transparent);
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ScreenUtils.getScreenWidth(ctx), ScreenUtils.getScreenHeight(ctx));
window.setContentView(vv,layoutParams);
TextView layout_error_phone_number =vv.findViewById(R.id.layout_error_phone_number);
String phoneNumber = ctx.getResources().getString(R.string.phoneNumber);
phoneNumber = String.format(phoneNumber, SPUtils.getStringValue("phoneNumber", "18938664545"));
layout_error_phone_number.setText(phoneNumber);
}
public void dismissDiaLog() {
if (dialog != null) {
dialog.dismiss();
}
}
}
package live.nodiyphoneshell.cend.dialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Build;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import com.yhd.mediaplayer.MediaPlayerHelper;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.SPUtils;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/23 17:15
*/
public class DialogManager {
private static volatile DialogManager intance;
public Dialog dialog;
public interface OnClickSaveListener {
void OnClickSaveButton();
}
public static DialogManager getIntance() {
if (intance == null) {
synchronized (DialogManager.class) {
if (intance == null)
intance = new DialogManager();
}
}
return intance;
}
public void showError(Context ctx) {
MediaPlayerHelper.getInstance().playAssetMusic(ctx, "mp3/recovered_very_quick.mp3");
View vv = LayoutInflater.from(ctx).inflate(R.layout.layout_error, null);
if (dialog == null) {
dialog = new AlertDialog.Builder(ctx).create();
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);
} else {
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_TOAST);
}
dialog.show();
dialog.setCancelable(false);
Window window = dialog.getWindow();
window.setBackgroundDrawableResource(R.color.transparent);
window.setGravity(Gravity.CENTER);
window.setContentView(vv);
window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
TextView layout_error_phone_number =vv.findViewById(R.id.layout_error_up_phone);
String phoneNumber = ctx.getResources().getString(R.string.phoneNumber);
phoneNumber = String.format(phoneNumber, SPUtils.getStringValue("phoneNumber", "18938664545"));
layout_error_phone_number.setText(phoneNumber);
}
public void dismissDiaLog() {
if (dialog != null) {
dialog.dismiss();
}
}
}
package live.nodiyphoneshell.cend.dialog;
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import androidx.annotation.NonNull;
import butterknife.BindView;
import butterknife.ButterKnife;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/23 17:15
*/
public class DialogMessageDialog extends Dialog {
public Dialog dialog;
@BindView(R.id.layout_message_fault_content)
TextView layout_message_fault_content;
private Context context;
public DialogMessageDialog(@NonNull Context context, String content) {
super(context);
this.context=context;
}
public void initView(String content) {
View centerView = getLayoutInflater().inflate(R.layout.layout_message_fault, null);
setContentView(centerView);
ButterKnife.bind(this, centerView);
Window window = this.getWindow();
window.setGravity(Gravity.CENTER);
WindowManager.LayoutParams lp = window.getAttributes();
lp.width = ScreenUtils.dip2px(context, 245);
lp.height = ScreenUtils.dip2px(context, 190);
window.setBackgroundDrawableResource(R.color.transparent);
setCanceledOnTouchOutside(false);
layout_message_fault_content.setText(content);
}
public void dismissDiaLog() {
dismiss();
}
}
package live.nodiyphoneshell.cend.dialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/28 16:26
*/
public class ShowClearDialog {
private static volatile ShowClearDialog intance;
private OnClickSaveListener onClickSaveListener;
private OnClickUpLoadListener onClickUpLoadListener;
public interface OnClickSaveListener {
void OnClickSaveButton();
}
public interface OnClickUpLoadListener {
void OnClickUpLoadButton();
}
public void setOnClickUpLoadListener(OnClickUpLoadListener onClickUpLoadListener) {
this.onClickUpLoadListener = onClickUpLoadListener;
}
public void setOnClickSaveListener(OnClickSaveListener onClickSaveListener) {
this.onClickSaveListener = onClickSaveListener;
}
public static ShowClearDialog getIntance() {
if (intance == null) {
synchronized (ShowClearDialog.class) {
if (intance == null)
intance = new ShowClearDialog();
}
}
return intance;
}
public void showClearAll(Context ctx) {
try {
View vv = LayoutInflater.from(ctx).inflate(R.layout.layout_clear_all_dialog, null);
Dialog dialog = new AlertDialog.Builder(ctx).create();
TextView layout_clear_all_dialog_confirm = vv.findViewById(R.id.layout_clear_all_dialog_confirm);
layout_clear_all_dialog_confirm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (onClickSaveListener != null) {
onClickSaveListener.OnClickSaveButton();
if (dialog != null) {
dialog.dismiss();
}
}
}
});
TextView layout_clear_all_dialog_cancel = vv.findViewById(R.id.layout_clear_all_dialog_cancel);
layout_clear_all_dialog_cancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (dialog != null) {
dialog.dismiss();
}
}
});
dialog.show();
dialog.setCancelable(true);
Window window = dialog.getWindow();
window.setBackgroundDrawableResource(R.color.transparent);
window.setGravity(Gravity.CENTER);
WindowManager.LayoutParams lp = window.getAttributes();
lp.width = ScreenUtils.dip2px(ctx, 245);
lp.height = ScreenUtils.dip2px(ctx, 165);
window.setAttributes(lp);
window.setContentView(vv);
}catch (Exception e){
}
}
}
package live.nodiyphoneshell.cend.dialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Build;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import live.nodiyphoneshell.cend.R;
import live.nodiyphoneshell.cend.utils.ScreenUtils;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/23 17:15
*/
public class ShowFailDialog implements View.OnClickListener {
private static volatile ShowFailDialog intance;
private OnClickSaveListener onClickSaveListener;
private OnClickUpLoadListener onClickUpLoadListener;
public Dialog dialog;
@Override
public void onClick(View view) {
}
public interface OnClickSaveListener {
void OnClickSaveButton();
}
public interface OnClickUpLoadListener {
void OnClickUpLoadButton();
}
public void setOnClickUpLoadListener(OnClickUpLoadListener onClickUpLoadListener) {
this.onClickUpLoadListener = onClickUpLoadListener;
}
public void setOnClickSaveListener(OnClickSaveListener onClickSaveListener) {
this.onClickSaveListener = onClickSaveListener;
}
public static ShowFailDialog getIntance() {
if (intance == null) {
synchronized (ShowFailDialog.class) {
if (intance == null)
intance = new ShowFailDialog();
}
}
return intance;
}
public void showPayFail(Context ctx) {
View vv = LayoutInflater.from(ctx).inflate(R.layout.layout_pay_succeed_fail, null);
dialog = new AlertDialog.Builder(ctx).create();
dialog.show();
dialog.setCancelable(false);
Window window = dialog.getWindow();
window.setBackgroundDrawableResource(R.color.transparent);
window.setGravity(Gravity.CENTER);
WindowManager.LayoutParams lp = window.getAttributes();
lp.width = ScreenUtils.getScreenWidth(ctx) - ScreenUtils.dip2px(ctx, 140);
window.setAttributes(lp);
window.setContentView(vv);
}
public void dismissDiaLog() {
if (dialog != null) {
dialog.dismiss();
}
}
}
package live.nodiyphoneshell.cend.fragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import java.util.List;
/**
* Created by shengming.yang on 2020/7/03.
*/
public class FragmentAdapter extends NewsFragmentStatePagerAdapter {
public List<Fragment> list;
private List<String> titles;
public FragmentAdapter(FragmentManager fm, List<Fragment> list, List<String> titles) {
super(fm);
this.list = list;
this.titles = titles;
}
public FragmentAdapter(FragmentManager fm) {
super(fm);
}
public void setFragments(List<Fragment> list){
this.list = list;
}
/**
*返回显示的Fragment总数
*/
@Override
public int getCount() {
return list != null ? list.size() : 0;
}
/**
* 返回要显示的Fragment的某个实例
*/
@Override
public Fragment getItem(int position) {
return list.get(position);
}
/**
*返回每个Tab的标题
*/
@Override
public CharSequence getPageTitle(int position) {
return titles.get(position);
}
}
package live.nodiyphoneshell.cend.fragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;
import java.util.List;
/**
* Created by shengming.yang on 2020/7/03.
*/
public class FragmentTabAdapter extends FragmentStatePagerAdapter {
public List<Fragment> list;
private List<String> titles;
public FragmentTabAdapter(FragmentManager fm, List<Fragment> list, List<String> titles) {
super(fm);
this.list = list;
this.titles = titles;
}
/**
* 返回显示的Fragment总数
*/
public void updateView(List<String> titles){
this.titles = titles;
}
/**
* 返回显示的Fragment总数
*/
@Override
public int getCount() {
return list != null ? list.size() : 0;
}
/**
* 返回要显示的Fragment的某个实例
*/
@Override
public Fragment getItem(int position) {
return list.get(position);
}
/**
* 返回每个Tab的标题
*/
@Override
public CharSequence getPageTitle(int position) {
return titles.get(position);
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
}
}
package live.nodiyphoneshell.cend.fragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.ViewGroup;
/**
* Created by shengming.yang on 2020/7/03.
*/
public abstract class NewsFragmentStatePagerAdapter extends FragmentStatePagerAdapter {
private boolean scrollable = false;
private SparseArray<Fragment> registeredFragments = new SparseArray<Fragment>();
public NewsFragmentStatePagerAdapter(FragmentManager fragmentManager) {
super(fragmentManager);
}
//Register the fragment when the item is instantiated
@Override
public Object instantiateItem(ViewGroup container, int position) {
Fragment fragment = (Fragment) super.instantiateItem(container, position);
registeredFragments.put(position, fragment);
return fragment;
}
//Unregister when the item is inactive
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
registeredFragments.remove(position);
super.destroyItem(container, position, object);
}
//Returns the fragment for the position (if instantiated)
public Fragment getRegisteredFragment(int position) {
return registeredFragments.get(position);
}
public void setScrollable(boolean scrollable) {
this.scrollable = scrollable;
}
public boolean onInterceptTouchEvent(MotionEvent ev) {
return scrollable;
}
public boolean onTouchEvent(MotionEvent ev) {
return scrollable;
}
}
package live.nodiyphoneshell.cend.magicrecyclerView;
import java.io.Serializable;
import static live.nodiyphoneshell.cend.magicrecyclerView.BaseRecyclerAdapter.RecyclerItemType.TYPE_NORMAL;
/**
* Created by MaYangHua on 2020/7/03.
* email : 295965650@qq.com
*/
public class BaseItem<T> implements Serializable {
//数据类型
private BaseRecyclerAdapter.RecyclerItemType mItemType;
//实际使用的数据
private T data;
public BaseRecyclerAdapter.RecyclerItemType getItemType() {
return mItemType == null ? TYPE_NORMAL : mItemType;
}
public void setItemType(BaseRecyclerAdapter.RecyclerItemType itemType) {
mItemType = itemType;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
}
package live.nodiyphoneshell.cend.magicrecyclerView;
import android.graphics.Rect;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.OrientationHelper;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import android.view.Gravity;
import android.view.View;
/**
* Created by MaYangHua on 2017/3/1.
* recyclerView 分割线
*/
public class SpaceDecoration extends RecyclerView.ItemDecoration {
private int halfSpace;
private int headerCount = -1;
private int footerCount = Integer.MAX_VALUE;
private boolean mPaddingEdgeSide = true;
private boolean mPaddingStart = true;
private boolean mPaddingHeaderFooter = false;
public SpaceDecoration(int space) {
this.halfSpace = space / 2;
}
public void setPaddingEdgeSide(boolean mPaddingEdgeSide) {
this.mPaddingEdgeSide = mPaddingEdgeSide;
}
public void setPaddingStart(boolean mPaddingStart) {
this.mPaddingStart = mPaddingStart;
}
public void setPaddingHeaderFooter(boolean mPaddingHeaderFooter) {
this.mPaddingHeaderFooter = mPaddingHeaderFooter;
}
@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
int position = parent.getChildAdapterPosition(view);
int spanCount = 0;
int orientation = 0;
int spanIndex = 0;
int headerCount = 1, footerCount = 0;
RecyclerView.LayoutManager layoutManager = parent.getLayoutManager();
if (layoutManager instanceof StaggeredGridLayoutManager) {
orientation = ((StaggeredGridLayoutManager) layoutManager).getOrientation();
spanCount = ((StaggeredGridLayoutManager) layoutManager).getSpanCount();
spanIndex = ((StaggeredGridLayoutManager.LayoutParams) view.getLayoutParams()).getSpanIndex();
} else if (layoutManager instanceof GridLayoutManager) {
orientation = ((GridLayoutManager) layoutManager).getOrientation();
spanCount = ((GridLayoutManager) layoutManager).getSpanCount();
spanIndex = ((GridLayoutManager.LayoutParams) view.getLayoutParams()).getSpanIndex();
} else if (layoutManager instanceof LinearLayoutManager) {
orientation = ((LinearLayoutManager) layoutManager).getOrientation();
spanCount = 1;
spanIndex = 0;
}
/**
* 普通Item的尺寸
*/
if ((position >= headerCount && position < parent.getAdapter().getItemCount() - footerCount)) {
int gravity;
if (spanIndex == 0 && spanCount > 1) gravity = Gravity.LEFT;
else if (spanIndex == spanCount - 1 && spanCount > 1) gravity = Gravity.RIGHT;
else if (spanCount == 1) gravity = Gravity.FILL_HORIZONTAL;
else {
gravity = Gravity.CENTER;
}
if (orientation == OrientationHelper.VERTICAL) {
switch (gravity) {
case Gravity.LEFT:
if (mPaddingEdgeSide)
outRect.left = halfSpace * 2;
outRect.right = halfSpace;
break;
case Gravity.RIGHT:
outRect.left = halfSpace;
if (mPaddingEdgeSide)
outRect.right = halfSpace * 2;
break;
case Gravity.FILL_HORIZONTAL:
if (mPaddingEdgeSide) {
outRect.left = halfSpace * 2;
outRect.right = halfSpace * 2;
}
break;
case Gravity.CENTER:
outRect.left = halfSpace;
outRect.right = halfSpace;
break;
}
if (position - headerCount < spanCount && mPaddingStart)
outRect.top = halfSpace * 2;
outRect.bottom = halfSpace * 2;
} else {
switch (gravity) {
case Gravity.LEFT:
if (mPaddingEdgeSide)
outRect.bottom = halfSpace * 2;
outRect.top = halfSpace;
break;
case Gravity.RIGHT:
outRect.bottom = halfSpace;
if (mPaddingEdgeSide)
outRect.top = halfSpace * 2;
break;
case Gravity.FILL_HORIZONTAL:
if (mPaddingEdgeSide) {
outRect.left = halfSpace * 2;
outRect.right = halfSpace * 2;
}
break;
case Gravity.CENTER:
outRect.bottom = halfSpace;
outRect.top = halfSpace;
break;
}
if (position - headerCount < spanCount && mPaddingStart)
outRect.left = halfSpace * 2;
outRect.right = halfSpace * 2;
}
} else {//只有HeaderFooter进到这里
if (mPaddingHeaderFooter) {//并且需要padding Header&Footer
if (orientation == OrientationHelper.VERTICAL) {
if (mPaddingEdgeSide) {
outRect.left = halfSpace * 2;
outRect.right = halfSpace * 2;
}
outRect.top = halfSpace * 2;
} else {
if (mPaddingEdgeSide) {
outRect.top = halfSpace * 2;
outRect.bottom = halfSpace * 2;
}
outRect.left = halfSpace * 2;
}
}
}
}
}
package live.nodiyphoneshell.cend.modules;
import java.util.List;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/12 14:37
*/
public class BannerBean {
/**
* code : 0
* msg :
* data : [{"id":7,"short_name":"促销活动","full_name":"促销活动","status":{"value":1,"text":"上架"},"ad_category_id":7,"type":{"value":1,"text":"图片"},"content":"http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15967073695f2bd22903a7b.png","go_url":"","sort":0,"create_time":"2020-08-06 17:49:53","update_time":"2020-08-06 18:02:13","delete_time":null,"ad_position_id":17,"ad_category_name":"广告分类二","ad_position_name":"平板待生产广告","ad_position_key":"index_left"},{"id":6,"short_name":"11","full_name":"111","status":{"value":1,"text":"上架"},"ad_category_id":7,"type":{"value":1,"text":"图片"},"content":"http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15967068145f2bcffe48911.png","go_url":"","sort":1,"create_time":"2020-08-06 17:40:26","update_time":"2020-08-06 18:01:52","delete_time":null,"ad_position_id":17,"ad_category_name":"广告分类二","ad_position_name":"平板待生产广告","ad_position_key":"index_left"}]
*/
private int code;
private String msg;
private List<DataBean> data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public List<DataBean> getData() {
return data;
}
public void setData(List<DataBean> data) {
this.data = data;
}
public static class DataBean {
/**
* id : 7
* short_name : 促销活动
* full_name : 促销活动
* status : {"value":1,"text":"上架"}
* ad_category_id : 7
* type : {"value":1,"text":"图片"}
* content : http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15967073695f2bd22903a7b.png
* go_url :
* sort : 0
* create_time : 2020-08-06 17:49:53
* update_time : 2020-08-06 18:02:13
* delete_time : null
* ad_position_id : 17
* ad_category_name : 广告分类二
* ad_position_name : 平板待生产广告
* ad_position_key : index_left
*/
private int id;
private String short_name;
private String full_name;
private StatusBean status;
private int ad_category_id;
private TypeBean type;
private String content;
private String go_url;
private int sort;
private String create_time;
private String update_time;
private String delete_time;
private int ad_position_id;
private String ad_category_name;
private String ad_position_name;
private String ad_position_key;
private String remark;
private String font_family;
private int font_size;
private String font_place;
private String font_color;
private int play_time;
public int getPlay_time() {
return play_time;
}
public void setPlay_time(int play_time) {
this.play_time = play_time;
}
public String getFont_family() {
return font_family;
}
public void setFont_family(String font_family) {
this.font_family = font_family;
}
public int getFont_size() {
return font_size;
}
public void setFont_size(int font_size) {
this.font_size = font_size;
}
public String getFont_place() {
return font_place;
}
public void setFont_place(String font_place) {
this.font_place = font_place;
}
public String getFont_color() {
return font_color;
}
public void setFont_color(String font_color) {
this.font_color = font_color;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getShort_name() {
return short_name;
}
public void setShort_name(String short_name) {
this.short_name = short_name;
}
public String getFull_name() {
return full_name;
}
public void setFull_name(String full_name) {
this.full_name = full_name;
}
public StatusBean getStatus() {
return status;
}
public void setStatus(StatusBean status) {
this.status = status;
}
public int getAd_category_id() {
return ad_category_id;
}
public void setAd_category_id(int ad_category_id) {
this.ad_category_id = ad_category_id;
}
public TypeBean getType() {
return type;
}
public void setType(TypeBean type) {
this.type = type;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getGo_url() {
return go_url;
}
public void setGo_url(String go_url) {
this.go_url = go_url;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public String getDelete_time() {
return delete_time;
}
public void setDelete_time(String delete_time) {
this.delete_time = delete_time;
}
public int getAd_position_id() {
return ad_position_id;
}
public void setAd_position_id(int ad_position_id) {
this.ad_position_id = ad_position_id;
}
public String getAd_category_name() {
return ad_category_name;
}
public void setAd_category_name(String ad_category_name) {
this.ad_category_name = ad_category_name;
}
public String getAd_position_name() {
return ad_position_name;
}
public void setAd_position_name(String ad_position_name) {
this.ad_position_name = ad_position_name;
}
public String getAd_position_key() {
return ad_position_key;
}
public void setAd_position_key(String ad_position_key) {
this.ad_position_key = ad_position_key;
}
public static class StatusBean {
/**
* value : 1
* text : 上架
*/
private int value;
private String text;
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
public static class TypeBean {
/**
* value : 1
* text : 图片
*/
private int value;
private String text;
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
}
}
package live.nodiyphoneshell.cend.modules;
public class BaseBean {
private int code;
private String msg;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}
package live.nodiyphoneshell.cend.modules;
import java.util.List;
public class BaseListBean<T> {
private int code;
private String msg;
private List<T> data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public List<T> getData() {
return data;
}
public void setData(List<T> data) {
this.data = data;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/18 10:38
*/
public class CancelOrderBean {
/**
* event : takedGoods
* data : {"order_d":1582222,"works_id":389,"order_queue_id":3,"msg":"取货完成"}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* order_d : 1582222
* works_id : 389
* order_queue_id : 3
* msg : 取货完成
*/
private int order_d;
private int works_id;
private int order_queue_id;
private String msg;
public int getOrder_d() {
return order_d;
}
public void setOrder_d(int order_d) {
this.order_d = order_d;
}
public int getWorks_id() {
return works_id;
}
public void setWorks_id(int works_id) {
this.works_id = works_id;
}
public int getOrder_queue_id() {
return order_queue_id;
}
public void setOrder_queue_id(int order_queue_id) {
this.order_queue_id = order_queue_id;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/20 18:15
*/
public class CancleOrder {
/**
* event : cancel
* data : {"order_d":1582222,"order_queue_id":3}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* order_d : 1582222
* order_queue_id : 3
*/
private String order_id;
private String order_queue_id;
public String getOrder_id() {
return order_id;
}
public void setOrder_id(String order_id) {
this.order_id = order_id;
}
public String getOrder_queue_id() {
return order_queue_id;
}
public void setOrder_queue_id(String order_queue_id) {
this.order_queue_id = order_queue_id;
}
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/9/3 18:49
*/
public class Dimension {
private double width;
private double height;
public Dimension(double width, double height) {
this.width = width;
this.height = height;
}
public double getWidth() {
return width;
}
public void setWidth(double width) {
this.width = width;
}
public double getHeight() {
return height;
}
public void setHeight(double height) {
this.height = height;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/29 18:36
*/
public class FileLogText {
private String tag;
private String content;
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/29 23:55
*/
public class GetWidAndHeightBean {
/**
* event : cancel
* data : {"order_d":1582222,"order_queue_id":3}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
private double render_height; //背景图片宽高
private double render_width;
private double render_cove_height; //白色区域宽高
private double render_cove_width;
public double getRender_height() {
return render_height;
}
public void setRender_height(double render_height) {
this.render_height = render_height;
}
public double getRender_width() {
return render_width;
}
public void setRender_width(double render_width) {
this.render_width = render_width;
}
public double getRender_cove_height() {
return render_cove_height;
}
public void setRender_cove_height(double render_cove_height) {
this.render_cove_height = render_cove_height;
}
public double getRender_cove_width() {
return render_cove_width;
}
public void setRender_cove_width(double render_cove_width) {
this.render_cove_width = render_cove_width;
}
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/9/22 11:31
*/
public class GetWxQrCodeBean {
public GetWxQrCodeBean(String path, int width) {
this.path = path;
this.width = width;
}
private String path;
private int width;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2021/3/11 13:50
*/
public class ImageBanner {
private String url;
private String name;
private String remark;
private String font_family;
private int font_size;
private String font_place;
private String font_color;
private int play_time=33;//播放时间
private int type;// 1图片 2视频
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
private String full_name;
public String getFull_name() {
return full_name;
}
public void setFull_name(String full_name) {
this.full_name = full_name;
}
public int getPlay_time() {
return play_time;
}
public void setPlay_time(int play_time) {
this.play_time = play_time;
}
public String getFont_family() {
return font_family;
}
public void setFont_family(String font_family) {
this.font_family = font_family;
}
public int getFont_size() {
return font_size;
}
public void setFont_size(int font_size) {
this.font_size = font_size;
}
public String getFont_place() {
return font_place;
}
public void setFont_place(String font_place) {
this.font_place = font_place;
}
public String getFont_color() {
return font_color;
}
public void setFont_color(String font_color) {
this.font_color = font_color;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
package live.nodiyphoneshell.cend.modules;
import java.util.List;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/24 9:51
*/
public class InventoryBean {
/**
* code : 0
* msg :
* data : {"stock":[{"id":131,"channel_no":"01","machine_id":100002,"type":0,"goods_id":1,"dict_id":69,"stock":0,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"S"},{"id":133,"channel_no":"03","machine_id":100002,"type":0,"goods_id":1,"dict_id":71,"stock":10,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"L"},{"id":134,"channel_no":"04","machine_id":100002,"type":0,"goods_id":1,"dict_id":72,"stock":10,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"XL"}],"coupon":{"ids":[2],"discount_amount":"58.98"}}
*/
private int code;
private String msg;
private DataBean data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* stock : [{"id":131,"channel_no":"01","machine_id":100002,"type":0,"goods_id":1,"dict_id":69,"stock":0,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"S"},{"id":133,"channel_no":"03","machine_id":100002,"type":0,"goods_id":1,"dict_id":71,"stock":10,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"L"},{"id":134,"channel_no":"04","machine_id":100002,"type":0,"goods_id":1,"dict_id":72,"stock":10,"delete_time":null,"status":{"value":1,"text":"启用"},"update_time":"2020-09-23 17:33:48","create_time":"2020-09-23 17:33:48","name":"白T恤","thumbnail":"https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png","goods_size":"XL"}]
* coupon : {"ids":[2],"discount_amount":"58.98"}
*/
private CouponBean coupon;
private List<StockBean> stock;
public CouponBean getCoupon() {
return coupon;
}
public void setCoupon(CouponBean coupon) {
this.coupon = coupon;
}
public List<StockBean> getStock() {
return stock;
}
public void setStock(List<StockBean> stock) {
this.stock = stock;
}
public static class CouponBean {
/**
* ids : [2]
* discount_amount : 58.98
*/
private double discount_amount;
private List<String> ids;
public double getDiscount_amount() {
return discount_amount;
}
public void setDiscount_amount(double discount_amount) {
this.discount_amount = discount_amount;
}
public List<String> getIds() {
return ids;
}
public void setIds(List<String> ids) {
this.ids = ids;
}
}
public static class StockBean {
/**
* id : 131
* channel_no : 01
* machine_id : 100002
* type : 0
* goods_id : 1
* dict_id : 69
* stock : 0
* delete_time : null
* status : {"value":1,"text":"启用"}
* update_time : 2020-09-23 17:33:48
* create_time : 2020-09-23 17:33:48
* name : 白T恤
* thumbnail : https://rfc.oss-cn-shenzhen.aliyuncs.com/back/16006931735f68a3b5a66d1.png
* goods_size : S
*/
private int id;
private String channel_no;
private int machine_id;
private int type;
private int goods_id;
private String dict_id;
private int stock;
private Object delete_time;
private StatusBean status;
private String update_time;
private String create_time;
private String name;
private String thumbnail;
private String goods_size;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getChannel_no() {
return channel_no;
}
public void setChannel_no(String channel_no) {
this.channel_no = channel_no;
}
public int getMachine_id() {
return machine_id;
}
public void setMachine_id(int machine_id) {
this.machine_id = machine_id;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getGoods_id() {
return goods_id;
}
public void setGoods_id(int goods_id) {
this.goods_id = goods_id;
}
public String getDict_id() {
return dict_id;
}
public void setDict_id(String dict_id) {
this.dict_id = dict_id;
}
public int getStock() {
return stock;
}
public void setStock(int stock) {
this.stock = stock;
}
public Object getDelete_time() {
return delete_time;
}
public void setDelete_time(Object delete_time) {
this.delete_time = delete_time;
}
public StatusBean getStatus() {
return status;
}
public void setStatus(StatusBean status) {
this.status = status;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
public String getGoods_size() {
return goods_size;
}
public void setGoods_size(String goods_size) {
this.goods_size = goods_size;
}
public static class StatusBean {
/**
* value : 1
* text : 启用
*/
private int value;
private String text;
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
}
}
}
package live.nodiyphoneshell.cend.modules;
public class MachineInitBean {
/**
* code : 0
* msg :
* data : {"id":100001,"code":"100001","goods_id":20,"partner_id":13,"shop_id":0,"status":{"value":0,"text":"离线"},"ink":{"value":0,"text":"正常"},"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC93d3cucmVmaW5lY29sb3IuY29tIiwiYXVkIjoicmVmaW5lY29sb3IiLCJpYXQiOjE1OTg5NDE2ODAsIm5iZiI6MTU5ODk0MTY4MCwiZXhwIjoxNTk5MDI4MDgwLCJ1aWQiOjEwMDAwMX0.2OvEheeWx94MVKVy6higKUfazsrn5Vg-hlO8Lk5svvU"}
*/
private int code;
private String msg;
private DataBean data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* id : 100001
* code : 100001
* goods_id : 20
* partner_id : 13
* shop_id : 0
* status : {"value":0,"text":"离线"}
* ink : {"value":0,"text":"正常"}
* token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC93d3cucmVmaW5lY29sb3IuY29tIiwiYXVkIjoicmVmaW5lY29sb3IiLCJpYXQiOjE1OTg5NDE2ODAsIm5iZiI6MTU5ODk0MTY4MCwiZXhwIjoxNTk5MDI4MDgwLCJ1aWQiOjEwMDAwMX0.2OvEheeWx94MVKVy6higKUfazsrn5Vg-hlO8Lk5svvU
*/
private int id;
private String code;
private String goods_id;
private String partner_id;
private String shop_id;
private StatusBean status;
private InkBean ink;
private String token;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getGoods_id() {
return goods_id;
}
public void setGoods_id(String goods_id) {
this.goods_id = goods_id;
}
public String getPartner_id() {
return partner_id;
}
public void setPartner_id(String partner_id) {
this.partner_id = partner_id;
}
public String getShop_id() {
return shop_id;
}
public void setShop_id(String shop_id) {
this.shop_id = shop_id;
}
public StatusBean getStatus() {
return status;
}
public void setStatus(StatusBean status) {
this.status = status;
}
public InkBean getInk() {
return ink;
}
public void setInk(InkBean ink) {
this.ink = ink;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public static class StatusBean {
/**
* value : 0
* text : 离线
*/
private int value;
private String text;
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
public static class InkBean {
/**
* value : 0
* text : 正常
*/
private int value;
private String text;
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
}
}
package live.nodiyphoneshell.cend.modules;
public class MachineInitParameter {
private int id;
private String secrect;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSecrect() {
return secrect;
}
public void setSecrect(String secrect) {
this.secrect = secrect;
}
}
package live.nodiyphoneshell.cend.modules;
public class MakeImageListBean {
private String url;
private int msg;
private int type; //type==0 显示; 1不显示
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public int getMsg() {
return msg;
}
public void setMsg(int msg) {
this.msg = msg;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/10 14:24
*/
public class MakeTemplateInfoBean {
private int templateId = 0; //模板Id
private double template_price = 0.0; //模板价格
private int template_user_id = 0; //用户Id
public int getTemplateId() {
return templateId;
}
public void setTemplateId(int templateId) {
this.templateId = templateId;
}
public double getTemplate_price() {
return template_price;
}
public void setTemplate_price(double template_price) {
this.template_price = template_price;
}
public int getTemplate_user_id() {
return template_user_id;
}
public void setTemplate_user_id(int template_user_id) {
this.template_user_id = template_user_id;
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/29 23:55
*/
public class MakeWorkBean {
}
package live.nodiyphoneshell.cend.modules;
public class MarqueeMessageBean {
private String message;//消息内容
private String url;//图片地址
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
package live.nodiyphoneshell.cend.modules;
import java.io.Serializable;
import java.util.List;
public class OnLineListBean implements Serializable {
/**
* event : updateQueue
* data : [{"id":185,"machine_id":100002,"order_id":159766700700000457,"works_id":984,"user_id":20,"username":null,"sort":0,"status":4,"price":"0.14","goods_name":"打印衣服","goods_specs":"S","works_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/984_15976670053256.png","back_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png","create_time":"2020-08-17 20:23:48","update_time":"2020-08-17 20:23:48","delete_time":null,"finish_time":null}]
*/
private String event;
private List<DataBean> data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public List<DataBean> getData() {
return data;
}
public void setData(List<DataBean> data) {
this.data = data;
}
public static class DataBean {
/**
* id : 185
* machine_id : 100002
* order_id : 159766700700000457
* works_id : 984
* user_id : 20
* username : null
* sort : 0
* status : 4
* price : 0.14
* goods_name : 打印衣服
* goods_specs : S
* works_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/984_15976670053256.png
* back_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png
* create_time : 2020-08-17 20:23:48
* update_time : 2020-08-17 20:23:48
* delete_time : null
* finish_time : null
*/
/*private int machine_id;
private long order_id;
private int works_id;
private int user_id;
private Object username;
private int sort;*/
private int id;
private int status;
private String price;
private String goods_name;
private String goods_specs;
private String works_image;
private String back_image;
private int works_id;
private String order_id;
public int getWorks_id() {
return works_id;
}
public void setWorks_id(int works_id) {
this.works_id = works_id;
}
public String getOrder_id() {
return order_id;
}
public void setOrder_id(String order_id) {
this.order_id = order_id;
}
/*private String create_time;
private String update_time;
private Object delete_time;
private Object finish_time;*/
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
/*public int getMachine_id() {
return machine_id;
}
public void setMachine_id(int machine_id) {
this.machine_id = machine_id;
}
public long getOrder_id() {
return order_id;
}
public void setOrder_id(long order_id) {
this.order_id = order_id;
}
public int getWorks_id() {
return works_id;
}
public void setWorks_id(int works_id) {
this.works_id = works_id;
}
public int getUser_id() {
return user_id;
}
public void setUser_id(int user_id) {
this.user_id = user_id;
}
public Object getUsername() {
return username;
}
public void setUsername(Object username) {
this.username = username;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}*/
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getGoods_name() {
return goods_name;
}
public void setGoods_name(String goods_name) {
this.goods_name = goods_name;
}
public String getGoods_specs() {
return goods_specs;
}
public void setGoods_specs(String goods_specs) {
this.goods_specs = goods_specs;
}
public String getWorks_image() {
return works_image;
}
public void setWorks_image(String works_image) {
this.works_image = works_image;
}
public String getBack_image() {
return back_image;
}
public void setBack_image(String back_image) {
this.back_image = back_image;
}
/* public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public Object getDelete_time() {
return delete_time;
}
public void setDelete_time(Object delete_time) {
this.delete_time = delete_time;
}
public Object getFinish_time() {
return finish_time;
}
public void setFinish_time(Object finish_time) {
this.finish_time = finish_time;
}*/
}
}
package live.nodiyphoneshell.cend.modules;
public class OrderNoticeBean {
/**//**
* event : orderNotice
* data : {"order_id":"162390858800005750","works_image":"https://img.colorpark.cn/yun/18148_16238987867496.png","code":"T恤定制-自助","username":"测试用户","goods_name":"T恤","goods_size":"L码","create_time":"2021-06-17 13:52:50"}
*//*
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {*/
/**
* order_id : 162390858800005750
* works_image : https://img.colorpark.cn/yun/18148_16238987867496.png
* code : T恤定制-自助
* username : 测试用户
* goods_name : T恤
* goods_size : L码
* create_time : 2021-06-17 13:52:50
*/
private String order_id;
private String works_image;
private String code;
private String username;
private String goods_name;
private String goods_size;
private long create_time;
public String getOrder_id() {
return order_id;
}
public void setOrder_id(String order_id) {
this.order_id = order_id;
}
public String getWorks_image() {
return works_image;
}
public void setWorks_image(String works_image) {
this.works_image = works_image;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getGoods_name() {
return goods_name;
}
public void setGoods_name(String goods_name) {
this.goods_name = goods_name;
}
public String getGoods_size() {
return goods_size;
}
public void setGoods_size(String goods_size) {
this.goods_size = goods_size;
}
public long getCreate_time() {
return create_time;
}
public void setCreate_time(long create_time) {
this.create_time = create_time;
}
/*}*/
}
package live.nodiyphoneshell.cend.modules;
public class PingBean {
/**
* event : ping
* data : {"machine_id":"100001","client":"android"}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* machine_id : 100001
* client : android
*/
private String machine_id;
private String client;
private String mac;
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac;
}
public String getMachine_id() {
return machine_id;
}
public void setMachine_id(String machine_id) {
this.machine_id = machine_id;
}
public String getClient() {
return client;
}
public void setClient(String client) {
this.client = client;
}
}
}
package live.nodiyphoneshell.cend.modules;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/7/31 18:00
*/
public class PrintOrderBean {
/**
* event : order
* data : {"machine_id":"100001","goods_id":1,"works_id":5}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* machine_id : 100001
* goods_id : 1
* works_id : 5
*/
private String machine_id;
private int goods_id;
private String works_id;
public String getMachine_id() {
return machine_id;
}
public void setMachine_id(String machine_id) {
this.machine_id = machine_id;
}
public int getGoods_id() {
return goods_id;
}
public void setGoods_id(int goods_id) {
this.goods_id = goods_id;
}
public String getWorks_id() {
return works_id;
}
public void setWorks_id(String works_id) {
this.works_id = works_id;
}
}
}
package live.nodiyphoneshell.cend.modules;
import java.io.Serializable;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/18 12:24
*/
public class ProcessBean implements Serializable {
/**
* event : inputGoods
* data : {"order_id":159823847000000760,"works_id":1326,"order_queue_id":247,"msg":"等待入货...","works_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/1326_15982384675321.png","back_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png"}
*/
private String event;
private DataBean data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* order_id:1.5982384700000077E+17
* works_id : 1326
* order_queue_id : 247
* msg : 等待入货...
* works_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/1326_15982384675321.png
* back_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png
*/
private String order_id;
private String works_id;
private int order_queue_id;
private String msg;
private String works_image;
private String back_image;
private int need_heating;// 0是不需要加烫化时间,1是要加烫化时间
public int getNeed_heating() {
return need_heating;
}
public void setNeed_heating(int need_heating) {
this.need_heating = need_heating;
}
public String getOrder_id() {
return order_id;
}
public void setOrder_id(String order_id) {
this.order_id = order_id;
}
public String getWorks_id() {
return works_id;
}
public void setWorks_id(String works_id) {
this.works_id = works_id;
}
public int getOrder_queue_id() {
return order_queue_id;
}
public void setOrder_queue_id(int order_queue_id) {
this.order_queue_id = order_queue_id;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public String getWorks_image() {
return works_image;
}
public void setWorks_image(String works_image) {
this.works_image = works_image;
}
public String getBack_image() {
return back_image;
}
public void setBack_image(String back_image) {
this.back_image = back_image;
}
}
}
package live.nodiyphoneshell.cend.modules;
public class ProductCategoryBean {
/**
* id : 1
* parent_id : 0
* name : T-体恤
* status : 1
* create_time : null
* update_time : null
* delete_time : null
*/
private int id;
private int parent_id;
private String name;
private int status;
private Object create_time;
private Object update_time;
private Object delete_time;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getParent_id() {
return parent_id;
}
public void setParent_id(int parent_id) {
this.parent_id = parent_id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public Object getCreate_time() {
return create_time;
}
public void setCreate_time(Object create_time) {
this.create_time = create_time;
}
public Object getUpdate_time() {
return update_time;
}
public void setUpdate_time(Object update_time) {
this.update_time = update_time;
}
public Object getDelete_time() {
return delete_time;
}
public void setDelete_time(Object delete_time) {
this.delete_time = delete_time;
}
}
package live.nodiyphoneshell.cend.modules;
import java.io.Serializable;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/22 16:23
*/
public class QrCodeBean implements Serializable {
/**
* code : 0
* msg : ok
* data : {"real_amount":"0.02","discount_amount":58.98,"works_amount":"0.00","goods_amount":"59.00","stream":"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"}
*/
private int code;
private String msg;
private DataBean data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean implements Serializable{
/**
* real_amount : 0.02
* discount_amount : 58.98
* works_amount : 0.00
* goods_amount : 59.00
* stream : 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
* coupon_flag_desc 你判断这个字段,如果有值你就显示,没值就留空
*/
private String real_amount;
private double discount_amount;
private double works_amount;
private String goods_amount;
private String stream;
private String coupon_flag_desc;
private String market_price;//市场价格
public String getMarket_price() {
return market_price;
}
public void setMarket_price(String market_price) {
this.market_price = market_price;
}
public String getCoupon_flag_desc() {
return coupon_flag_desc;
}
public void setCoupon_flag_desc(String coupon_flag_desc) {
this.coupon_flag_desc = coupon_flag_desc;
}
public String getReal_amount() {
return real_amount;
}
public void setReal_amount(String real_amount) {
this.real_amount = real_amount;
}
public double getDiscount_amount() {
return discount_amount;
}
public void setDiscount_amount(double discount_amount) {
this.discount_amount = discount_amount;
}
public double getWorks_amount() {
return works_amount;
}
public void setWorks_amount(double works_amount) {
this.works_amount = works_amount;
}
public String getGoods_amount() {
return goods_amount;
}
public void setGoods_amount(String goods_amount) {
this.goods_amount = goods_amount;
}
public String getStream() {
return stream;
}
public void setStream(String stream) {
this.stream = stream;
}
}
}
package live.nodiyphoneshell.cend.modules;
import java.util.List;
/**
* @author MaYnaghua
* @version 1.0.0
* @date 2020/8/17 18:49
*/
public class QueryQueueBean {
/**
* event : updateQueue
* data : [{"id":180,"machine_id":100002,"order_id":159766195800000445,"works_id":971,"user_id":20,"username":null,"sort":0,"status":4,"price":"0.14","goods_name":"打印衣服","goods_specs":"S","works_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/971_15976618672010.png","back_image":"http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png","create_time":"2020-08-17 18:59:36","update_time":"2020-08-17 18:59:36","delete_time":null,"finish_time":null}]
*/
private String event;
private List<DataBean> data;
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public List<DataBean> getData() {
return data;
}
public void setData(List<DataBean> data) {
this.data = data;
}
public static class DataBean {
/**
* id : 180
* machine_id : 100002
* order_id : 159766195800000445
* works_id : 971
* user_id : 20
* username : null
* sort : 0
* status : 4
* price : 0.14
* goods_name : 打印衣服
* goods_specs : S
* works_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/yun/971_15976618672010.png
* back_image : http://rfc.oss-cn-shenzhen.aliyuncs.com/back/15966960875f2ba6174d1f8.png
* create_time : 2020-08-17 18:59:36
* update_time : 2020-08-17 18:59:36
* delete_time : null
* finish_time : null
*/
private int id;
private int machine_id;
private long order_id;
private int works_id;
private int user_id;
private Object username;
private int sort;
private int status;
private String price;
private String goods_name;
private String goods_specs;
private String works_image;
private String back_image;
private String create_time;
private String update_time;
private Object delete_time;
private Object finish_time;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getMachine_id() {
return machine_id;
}
public void setMachine_id(int machine_id) {
this.machine_id = machine_id;
}
public long getOrder_id() {
return order_id;
}
public void setOrder_id(long order_id) {
this.order_id = order_id;
}
public int getWorks_id() {
return works_id;
}
public void setWorks_id(int works_id) {
this.works_id = works_id;
}
public int getUser_id() {
return user_id;
}
public void setUser_id(int user_id) {
this.user_id = user_id;
}
public Object getUsername() {
return username;
}
public void setUsername(Object username) {
this.username = username;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getGoods_name() {
return goods_name;
}
public void setGoods_name(String goods_name) {
this.goods_name = goods_name;
}
public String getGoods_specs() {
return goods_specs;
}
public void setGoods_specs(String goods_specs) {
this.goods_specs = goods_specs;
}
public String getWorks_image() {
return works_image;
}
public void setWorks_image(String works_image) {
this.works_image = works_image;
}
public String getBack_image() {
return back_image;
}
public void setBack_image(String back_image) {
this.back_image = back_image;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public Object getDelete_time() {
return delete_time;
}
public void setDelete_time(Object delete_time) {
this.delete_time = delete_time;
}
public Object getFinish_time() {
return finish_time;
}
public void setFinish_time(Object finish_time) {
this.finish_time = finish_time;
}
}
}
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment