001 package com.croftsoft.apps.chat.response; 002 003 import com.croftsoft.core.lang.NullArgumentException; 004 005 import com.croftsoft.apps.chat.model.seri.SeriChatWorld; 006 007 /********************************************************************* 008 * Response to a ViewRequest. 009 * 010 * @version 011 * 2003-06-18 012 * @since 013 * 2003-06-11 014 * @author 015 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 016 *********************************************************************/ 017 018 public final class ViewResponse 019 extends AbstractResponse 020 ////////////////////////////////////////////////////////////////////// 021 ////////////////////////////////////////////////////////////////////// 022 { 023 024 private static final long serialVersionUID = 0L; 025 026 // 027 028 private final SeriChatWorld seriChatWorld; 029 030 private final long eventIndex; 031 032 ////////////////////////////////////////////////////////////////////// 033 ////////////////////////////////////////////////////////////////////// 034 035 public ViewResponse ( 036 SeriChatWorld seriChatWorld, 037 long eventIndex ) 038 ////////////////////////////////////////////////////////////////////// 039 { 040 super ( false ); 041 042 NullArgumentException.check ( this.seriChatWorld = seriChatWorld ); 043 044 this.eventIndex = eventIndex; 045 } 046 047 ////////////////////////////////////////////////////////////////////// 048 ////////////////////////////////////////////////////////////////////// 049 050 public SeriChatWorld getSeriChatWorld ( ) { return seriChatWorld; } 051 052 public long getEventIndex ( ) { return eventIndex; } 053 054 ////////////////////////////////////////////////////////////////////// 055 ////////////////////////////////////////////////////////////////////// 056 }