BrightSide Workbench Full Report + Source Code
org.turro.alliance.client.model.ParticipationsVM Class Reference

Public Member Functions

List< ParticipationAdaptergetModel ()
 

Detailed Description

Member Function Documentation

◆ getModel()

List<ParticipationAdapter> org.turro.alliance.client.model.ParticipationsVM.getModel ( )

Definition at line 39 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/client/model/ParticipationsVM.java.

39  {
40  if(model == null) {
41  model = new ArrayList<>();
42  Servers.getServers(AxServer.SERVER_SERVICE).forEach(server -> {
43  Jsons memberInfo = Servers.getData(server, WsConstants.CLIENT_INFO);
44  if(!Jsons.isEmpty(memberInfo)) {
45  Jsons request = Jsons.object();
46  Jsons participations = Servers.getData(server, AxConstants.AXFULL_PARTICIPATIONS, request);
47  if(!Jsons.isEmpty(participations)) participations.getStructure().asArray().forEach(axr -> {
48  model.add(new ParticipationAdapter(server, memberInfo.getLong("id"), Jsons.read(axr.toString())));
49  });
50  }
51  });
52  }
53  return model;
54  }

The documentation for this class was generated from the following file: