@@ -1871,130 +1871,4 @@ public TeamsMeetingInfo teamsGetMeetingInfo() {
18711871
18721872 return teamsChannelData != null ? teamsChannelData .getMeeting () : null ;
18731873 }
1874-
1875- /**
1876- * Returns this activity as a Message Activity; or null, if this is not that type of activity.
1877- *
1878- * @return This activity as a message activity; or null.
1879- */
1880- public Activity asMessageActivity () {
1881- return isActivity (ActivityTypes .MESSAGE ) ? this : null ;
1882- }
1883-
1884- /**
1885- * Returns this activity as a Contact Relation Update Activity; or null, if this is not that type of activity.
1886- *
1887- * @return This activity as a contact relation update activity; or null.
1888- */
1889- public Activity asContactRelationUpdateActivity () {
1890- return isActivity (ActivityTypes .CONTACT_RELATION_UPDATE ) ? this : null ;
1891- }
1892-
1893- /**
1894- * Returns this activity as an Installation Update Activity; or null, if this is not that type of activity.
1895- *
1896- * @return This activity as an installation update activity; or null.
1897- */
1898- public Activity asInstallationUpdateActivity () {
1899- return isActivity (ActivityTypes .INSTALLATION_UPDATE ) ? this : null ;
1900- }
1901-
1902- /**
1903- * Returns this activity as a Conversation Update Activity; or null, if this is not that type of activity.
1904- *
1905- * @return This activity as a conversation update activity; or null.
1906- */
1907- public Activity asConversationUpdateActivity () {
1908- return isActivity (ActivityTypes .CONVERSATION_UPDATE ) ? this : null ;
1909- }
1910-
1911- /**
1912- * Returns this activity as a Typing Activity; or null, if this is not that type of activity.
1913- *
1914- * @return This activity as a typing activity; or null.
1915- */
1916- public Activity asTypingActivity () {
1917- return isActivity (ActivityTypes .TYPING ) ? this : null ;
1918- }
1919-
1920- /**
1921- * Returns this activity an End of Conversation Activity; or null, if this is not that type of activity.
1922- *
1923- * @return This activity as an end of conversation activity; or null.
1924- */
1925- public Activity asEndOfConversationActivity () {
1926- return isActivity (ActivityTypes .END_OF_CONVERSATION ) ? this : null ;
1927- }
1928-
1929- /**
1930- * Returns this activity an Event Activity; or null, if this is not that type of activity.
1931- *
1932- * @return This activity as an event activity; or null.
1933- */
1934- public Activity asEventActivity () {
1935- return isActivity (ActivityTypes .EVENT ) ? this : null ;
1936- }
1937-
1938- /**
1939- * Returns this activity an Invoke Activity; or null, if this is not that type of activity.
1940- *
1941- * @return This activity as an invoke activity; or null.
1942- */
1943- public Activity asInvokeActivity () {
1944- return isActivity (ActivityTypes .INVOKE ) ? this : null ;
1945- }
1946-
1947- /**
1948- * Returns this activity a Message Update Activity; or null, if this is not that type of activity.
1949- *
1950- * @return This activity as a message update activity; or null.
1951- */
1952- public Activity asMessageUpdateActivity () {
1953- return isActivity (ActivityTypes .MESSAGE_UPDATE ) ? this : null ;
1954- }
1955-
1956- /**
1957- * Returns this activity a Message Delete Activity; or null, if this is not that type of activity.
1958- *
1959- * @return This activity as a message delete activity; or null.
1960- */
1961- public Activity asMessageDeleteActivity () {
1962- return isActivity (ActivityTypes .MESSAGE_DELETE ) ? this : null ;
1963- }
1964-
1965- /**
1966- * Returns this activity a Message Reaction Activity; or null, if this is not that type of activity.
1967- *
1968- * @return This activity as a message reaction activity; or null.
1969- */
1970- public Activity asMessageReactionActivity () {
1971- return isActivity (ActivityTypes .MESSAGE_REACTION ) ? this : null ;
1972- }
1973-
1974- /**
1975- * Returns this activity a Suggestion Activity; or null, if this is not that type of activity.
1976- *
1977- * @return This activity as a suggestion activity; or null.
1978- */
1979- public Activity asSuggestionActivity () {
1980- return isActivity (ActivityTypes .SUGGESTION ) ? this : null ;
1981- }
1982-
1983- /**
1984- * Returns this activity a Trace Activity; or null, if this is not that type of activity.
1985- *
1986- * @return This activity as a trace activity; or null.
1987- */
1988- public Activity asTraceActivity () {
1989- return isActivity (ActivityTypes .TRACE ) ? this : null ;
1990- }
1991-
1992- /**
1993- * Returns this activity a Handoff Activity; or null, if this is not that type of activity.
1994- *
1995- * @return This activity as a handoff activity; or null.
1996- */
1997- public Activity asHandoffActivity () {
1998- return isActivity (ActivityTypes .HANDOFF ) ? this : null ;
1999- }
20001874}
0 commit comments