我有json
{“照相机”:[
{
"archives" : [
{
"accessPoint" : "xxxx",
"default" : true,
"isEmbedded" : false,
"storage" : "xxxx",
"storageDisplayName" : "xxxx"
}
],
"audioStreams" : [],
"comment" : "",
"detectors" : [
{
"accessPoint" : "xxxx",
"displayName" : "",
"events" : [ "SceneChangeDetected" ],
"isActivated" : true,
"parentDetector" : "",
"type" : "xxxx"
},
{
"accessPoint" : "xxxx",
"displayName" : "",
"events" : [ "xxx" ],
"isActivated" : true,
"parentDetector" : "",
"type" : "xxxx"
}
],
"displayId" : "1",
"displayName" : "xxx",
"ipAddress" : "0.0.0.0",
"isActivated" : true,
"latitude" : "xxxx",
"longitude" : "xxx",
"model" : "Virtual",
"offlineDetectors" : [],
"ptzs" : [],
"textSources" : [],
"vendor" : "AxxonSoft",
"videoStreams" : [
{
"accessPoint" : "xxx
}
]
}, "archives" : [
波乔
公共类allcameras{@serializedname(“cameras”)@公开私有arraylist camera;
public ArrayList<Camera> getCameras() {
return camera;
}
public void setCameras(ArrayList<Camera> cameras) {
this.camera = cameras;
}
公开类摄像机{@serializedname(“档案”)@公开私有arraylist档案;
@SerializedName("displayName")
@Expose
private String displayName;
public ArrayList<Archive> getArchives() {
return archives;
}
public void setArchives(ArrayList<Archive> archives) {
this.archives = archives;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
我有一个代码,在rxjava的帮助下,我得到了这个列表。接下来,我想合并两个请求,并将执行结果(id)从一个传递到另一个
但我面临一个问题:为了让它工作,我必须一次接收一个摄影机对象,并将其id传递给另一个函数,但我只能得到一个arraylist
请帮忙,怎么办?
暂无答案!
目前还没有任何答案,快来回答吧!