History

Show Presentation
 
 101
Home • .templates • Commands • 101
 
<X-FC-WHITESPACE STRIP>
<!--#while expr="<X-FC-URL-PARAMETER UC NUMBER> == <X-FC-OBJECT UpdateCount> && <X-FC-REQUEST-TIME> < 30000 && <X-FC-OBJECT WantsToClose> == 0"-->
        <X-FC-IDLE 1000>
<!--#endwhile-->
<!--#set var="LASTUPDATE" value="<X-FC-URL-PARAMETER CU NUMBER>"-->
{
        "tHDR":"Commands/x101 T=<X-FC-REQUEST-TIME> UCin=<X-FC-URL-PARAMETER UC NUMBER> UCout=<X-FC-OBJECT UpdateCount> UD=<!--#echo var="$LASTUPDATE"--> FC=<X-FC-FIELD-COUNT LATE.8052>",
        "uc":<X-FC-OBJECT UpdateCount>,
<!--#if expr="<X-FC-URL-PARAMETER UC NUMBER> != <X-FC-OBJECT UpdateCount>"-->
        "name":"<X-FC-FIELD 8010 ESCAPED>"      ,
        "moderated":<X-FC-FIELD 8054 DEFAULT=LANG.129.8054.85 NUMBER>,
        "catchup":<X-FC-FIELD 8050 DEFAULT=LANG.129.8050.85 NUMBER>,
        "transcript":<X-FC-FIELD 8051 DEFAULT=LANG.129.8051.85 NUMBER>,
        "pl":[
        <!--#set var="INDEX" value="-1"-->
        <!--#while expr="++$INDEX < <X-FC-RECIPIENT-COUNT CHATNAME>"-->
                {
                        "index":<!--#echo var="INDEX"-->,
                        "pid":  <X-FC-RECIPIENT CHATNAME.`$INDEX` DATA[SubType]>,
                        "state":        <X-FC-RECIPIENT CHATNAME.`$INDEX` DATA[Status] Unapproved>,
                        "me":   <X-FC-RECIPIENT CHATNAME.`$INDEX` DATA[Status] Outgoing>,
                        "icon": {
                                "width":<X-FC-RECIPIENT CHATNAME.`$INDEX` Data[IconID] WIDTH>,
                                "height":<X-FC-RECIPIENT CHATNAME.`$INDEX` Data[IconID] HEIGHT>,
                                "path":"<X-FC-RECIPIENT CHATNAME.`$INDEX` Data[IconID]>"
                                },
                        "name":"<X-FC-RECIPIENT CHATNAME.`$INDEX` DATA[Name] ESCAPED>"
                }
                <!--#if expr="$INDEX < <X-FC-RECIPIENT-COUNT CHATNAME> - 1"-->
                ,
                <!--#endif-->
        <!--#endwhile-->
                ],
        <!--#if expr="$LASTUPDATE < <X-FC-FIELD-COUNT LATE.8052>"-->
        "ud":{
                "first":        <!--#echo var="LASTUPDATE"-->,
                "last": <X-FC-FIELD-COUNT LATE.8052>,
                "mark": <X-FC-CHAT-UPDATE MARK>,
                "ul":[
                <!--#set var="INDEX" expr="$LASTUPDATE - 1"-->
                <!--#while expr="++$INDEX < <X-FC-FIELD-COUNT LATE.8052>"-->
                        <!--#set var="SOUND" value="0"-->
                        <!--#set var="WHAT" expr="1 + <X-FC-FIELD LATE.8052.`$INDEX` DEFAULT=0 NUMBER>"-->
                        <!--#if expr="$WHAT == 2"-->
                                <!--#set var="SOUND" value="130"-->
                        <!--#elif expr="$WHAT == 3"-->
                                <!--#set var="SOUND" value="129"-->
                        <!--#elif expr="$WHAT == 1 && <X-FC-FIELD PREFS.1103 DEFAULT=LANG.127.1103.85 NUMBER>"-->
                                <!--#set var="EMBED" value="AUTOPLAY"-->
                        <!--#endif-->
                        {
                        <!--#if expr="$WHAT == 14"-->
                                <!--#set var="SUFFIX" value="<X-FC-FIELD LANG.139.4 ESCAPED>"-->
                                <!--#set var="PREFIX" expr="@split($SUFFIX,'^0')"-->
                                "prefix":"<!--#echo var="PREFIX"--><X-FC-FIELD LATE.100.`$INDEX` ESCAPED><!--#echo var="SUFFIX"-->",
                                "body":"<X-FC-FIELD LATE.8047.`$INDEX` STYLED.LATE.8046.`$INDEX` ESCAPED>",
                        <!--#elif expr="$WHAT >= 1"-->
                                "prefix":"<X-FC-FIELD LATE.100.`$INDEX` ESCAPED><X-FC-FIELD LANG.139.`$WHAT` ESCAPED>",
                                "body":"<X-FC-FIELD LATE.8047.`$INDEX` STYLED.LATE.8046.`$INDEX` `$EMBED` ESCAPED>",
                        <!--#else-->
                                "body":"<X-FC-FIELD LATE.8047.`$INDEX` STYLED.LATE.8046.`$INDEX` ESCAPED>",
                        <!--#endif-->
                        <!--#if expr="$SOUND"-->
                                "soundid":"<!--#echo var="SOUND"-->",
                        <!--#endif-->
                                "index":<!--#echo var="INDEX"-->
                        }
                        <!--#if expr="$INDEX < <X-FC-FIELD-COUNT LATE.8052> - 1"-->                             
                        ,
                        <!--#endif-->
                <!--#endwhile-->
                        ]
                },
        <!--#endif-->
        <!--#if expr="<X-FC-LIST-COUNT>"-->
        "al":[
                <!--#set var="INDEX" value="-1"-->
                <!--#while expr="++$INDEX < <X-FC-LIST-COUNT>"-->       
                {
                        "index":<X-FC-LIST-ITEM `$INDEX` DATA[Index]>,
                        "partial":<X-FC-LIST-ITEM `$INDEX` COLUMN[Status] Partial>,
                        "name":"<X-FC-LIST-ITEM `$INDEX` COLUMN[Name] ESCAPED>",
                        "icon":
                                {
                                "width":16,
                                "height":16,
                                "title":"<X-FC-LIST-ITEM `$INDEX` COLUMN[ObjType]>",
                                "path":"<X-FC-LIST-ITEM `$INDEX` COLUMN[Icon] SMALLPATH>"
                                },
                        "size":"<X-FC-LIST-ITEM `$INDEX` COLUMN[Size] SCALEDK>"
                }
                        <!--#if expr="$INDEX < <X-FC-LIST-COUNT> - 1"-->
                ,
                        <!--#endif-->
                <!--#endwhile-->
                ],
        <!--#endif-->
<!--#endif-->
        "tFTR":"*x101 T=<X-FC-REQUEST-TIME>"
}
<X-FC-WHITESPACE RETAIN>