动画编码完成
This commit is contained in:
@@ -1,23 +1,18 @@
|
||||
package com.hmwl.face_sdk;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Motion {
|
||||
public String type = "no";
|
||||
public String technique = "no";
|
||||
public String step = "no";
|
||||
public String show_type = "no";
|
||||
public String png_name = "no";
|
||||
public int png_num;
|
||||
public List<String> png_names = new ArrayList<>();
|
||||
|
||||
public JSONObject toJsonObject() {
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("type", type);
|
||||
jsonObject.put("technique", technique);
|
||||
jsonObject.put("step", step);
|
||||
jsonObject.put("show_type", show_type);
|
||||
jsonObject.put("png_name", png_name);
|
||||
jsonObject.put("png_num", png_num);
|
||||
jsonObject.put("png_names", png_names);
|
||||
return jsonObject;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user