DashboardSlides GetDashboardSlides(string mon, DashboardSlides tArg)
mon. Moniker for working with information panel slides.
tArg. Operation execution parameters.
The GetDashboardSlides operation gets information panel slide settings.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Slides postfix, and in the tArg.its field specify empty values or default values of the fields, which values should be obtained. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the obtained information about information panel slides.
Below is the example of getting a list of information panel slides. The request contains the moniker for working with slides and the list of obtained slide settings. The response contains the obtained information.
{
"GetDashboardSlides" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"title" : "",
"settings" : "",
"publicated" : "false",
"name" : "",
"visible" : "false"
}
]
},
"activeIndex" : "2147483647",
"canUsePublication" : "false"
}
}
}
{
"GetDashboardSlidesResult" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"title" : "Slide 1",
"publicated" : "0",
"name" : "Slide 1",
"visible" : "1"
},
{
"k" : "2",
"title" : "Slide 2",
"publicated" : "0",
"name" : "Slide 2",
"visible" : "1"
}
]
},
"activeIndex" : "0",
"canUsePublication" : "0"
}
}
public static DashboardSlides GetDashboardSlides(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDashboardSlides()
{
tArg = new DashboardSlides()
{
activeIndex = int.MaxValue,
canUsePublication = new bool(),
its = new DashboardSlide[]
{
new DashboardSlide()
{
k = uint.MaxValue,
name = string.Empty,
publicated = new bool(),
settings = string.Empty,
title = string.Empty,
visible = new bool()
}
}
},
// Moniker for working with information panel slides
mon = moniker + "!Slides"
};
// Get information about slides
var result = somClient.GetDashboardSlides(tGet);
return result;
}
See also: