/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.uccollaborationlib;
import com.wilutions.com.*;
/**
* Group.
* Represents a group of contacts.
*/
@CoClass(guid="{95EE29D5-2B51-46E4-8F7C-406FC3827A80}")
public class Group extends Dispatch implements IGroup {
static boolean __typelib__loaded = __TypeLib.load();
@DeclDISPID(-4) public Object get_NewEnum() throws ComException {
final Object obj = this._dispatchCall(-4,"_NewEnum", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (Object)obj;
}
@DeclDISPID(1610743809) public Integer getCount() throws ComException {
final Object obj = this._dispatchCall(1610743809,"Count", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (Integer)obj;
}
@DeclDISPID(1610743810) public Boolean TryGetContact(final String _uri, final ByRef<IContact> _value) throws ComException {
assert(_uri != null);
assert(_value != null);
final Object obj = this._dispatchCall(1610743810,"TryGetContact", DISPATCH_METHOD,null,_uri,_value);
if (obj == null) return null;
return (Boolean)obj;
}
@DeclDISPID(1610809344) public GroupType getType() throws ComException {
final Object obj = this._dispatchCall(1610809344,"Type", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return GroupType.valueOf((Integer)obj);
}
@DeclDISPID(1610809345) public String getName() throws ComException {
final Object obj = this._dispatchCall(1610809345,"Name", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (String)obj;
}
@DeclDISPID(1610809346) public String getId() throws ComException {
final Object obj = this._dispatchCall(1610809346,"Id", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (String)obj;
}
@DeclDISPID(1610809347) public IAsynchronousOperation AddContact(final IContact _contact, final Object _groupCallback, final Object _state) throws ComException {
assert(_groupCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610809347,"AddContact", DISPATCH_METHOD,null,(_contact!=null?_contact:Dispatch.NULL),_groupCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610809348) public IAsynchronousOperation RemoveContact(final IContact pContact, final Object _groupCallback, final Object _state) throws ComException {
assert(_groupCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610809348,"RemoveContact", DISPATCH_METHOD,null,(pContact!=null?pContact:Dispatch.NULL),_groupCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610809349) public IContactManager getContactManager() throws ComException {
final Object obj = this._dispatchCall(1610809349,"ContactManager", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IContactManagerImpl.class);
}
@DeclDISPID(1610809350) public Boolean CanInvoke(final GroupAction _action, final IContact _contact) throws ComException {
assert(_action != null);
final Object obj = this._dispatchCall(1610809350,"CanInvoke", DISPATCH_METHOD,null,_action.value,(_contact!=null?_contact:Dispatch.NULL));
if (obj == null) return null;
return (Boolean)obj;
}
public Group() throws ComException {
super("{95EE29D5-2B51-46E4-8F7C-406FC3827A80}", "{F97973D7-9436-4A3E-A802-F6EA172A0425}");
}
protected Group(long ndisp) {
super(ndisp);
}
public String toString() {
return "[Group" + super.toString() + "]";
}
}