Logo
IT Dienstleistungen

XML Stanzas

Die XML Fragmente zur Kommunikation der LectuRate Komponenten.

Comment

Server → Client

Ein Kommentar von einem beliebigen Dienst als XML serialisiert und vom Client zu verarbeiten

<comment>
  <id>DATE.getTime()</id>
  <via>$SERVICENAME</via>
  <lecture>#LectureKey</lecture>
  <fromID>$USERID</fromID>
  <fromName>USERNAME</fromName>
  <text>PLAINTEXT</text></comment>
  <attribute key="$KEYCODE" value="0-9" /> ::
</comment> 

Beispiel

<comment><id>13495890654</id><via>microblog</via><lecture>#abcd</lecture>
<fromID>student@mannitalks.ath.cx</fromID><fromName>student@mannitalks.ath.cx</fromName>
<text>sms test</text><attribute key="v" value="6" /><attribute key="s" value="3" /><attribute key="c" value="2" /></comment>

Lecture Request

Client → Server

Anfrage des Clients an den Server über die Erstellung einer neuen Veranstaltung.

<create type="lecture">
  <title>$Name der Veranstaltung</title>
  <from>$JabberID eines berechtigten Users</from>
</create>

Beispiel

<create type="lecture"><title>test</title><from>dozent@mannitalks.ath.cx</from></create>

Lecture

Server → Client

Übermittlung einer Veranstaltung vom Server an den Client

<lecture>
  <key>#LectureKey</key>
  <name>Lecture Name</name>
  <owner>Authorized User</owner>
  <date>Date.getTime()</date>
  <attribute id="1">
    <key>KEYCODE</key>
    <value>ATTRIBUTE VALUE</value>
    <count>COUNT OF VOTINGS</count>
    <named>NAME OF ATTRIBUTE</named>
    <high>NAME OF HIGH END</high>
    <low>NAME OF LOW END</low>
  </attribute>
  <attribute id="2">
    <key>KEYCODE</key>
    <value>ATTRIBUTE VALUE</value>
    <count>COUNT OF VOTINGS</count>
    <named>NAME OF ATTRIBUTE</named>
    <high>NAME OF HIGH END</high>
    <low>NAME OF LOW END</low>
  </attribute>
  <attribute id="3">
    <key>KEYCODE</key>
    <value>ATTRIBUTE VALUE</value>
    <count>COUNT OF VOTINGS</count>
    <named>NAME OF ATTRIBUTE</named>
    <high>NAME OF HIGH END</high>
    <low>NAME OF LOW END</low>
  </attribute>
</lecture>

Beispiel

<lecture><key>#PTBS</key><name>test</name><owner>dozent@mannitalks.ath.cx</owner><date>1273151884884</date><attribute id="3"><key>v</key><value>5</value><count>1</count><named>Verständlichkeit</named><high>zu komplex</high><low>zu simpel</low></attribute><attribute id="2"><key>g</key><value>5</value><count>1</count><named>Geschwindigkeit</named><high>zu schnell</high><low>zu langsam</low></attribute><attribute id="1"><key>l</key><value>5</value><count>1</count><named>Lautstärke</named><high>zu laut</high><low>zu Leise</low></attribute></lecture>

Seiten-Werkzeuge