From 11682e572578d5d748c3c9ce190e9f3d8a93d7de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 5 Aug 2017 16:57:09 +0200 Subject: [PATCH] Continued a bit: - added events being fired when a contact instance has been created - updated jar(s) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- lib/jphone-core.jar | Bin 66086 -> 66026 bytes .../contact/created/CreatedContactEvent.java | 54 ++++++++++++++++++ .../ObservableCreatedContactEvent.java | 37 ++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 src/org/mxchange/jcontacts/events/contact/created/CreatedContactEvent.java create mode 100644 src/org/mxchange/jcontacts/events/contact/created/ObservableCreatedContactEvent.java diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index c26881aca177c269466cbbe99109ae447c9db073..e02fe6449c20b81d3ab78ce994272454a410dfb6 100644 GIT binary patch delta 2162 zcmZuydrVVT7{B-SL0gN+L$Kshx-noDML-adry^J=SQryGqfAZ6bisimadXB+m^yGe zfiGw_7m?XCb6c1TOWXsQE@s&uMy6()Lq$*?N_nct1c9CJYj3rSP0szD^ZWh2@0{=4 zb8c;W<^3PZwRvWlT*GlHjx*b8wey8+TW!1*pEnKooIwVRd=$cZJ|3Z-Pef=GqT!rI z1+xT=G(6p_(Mai>jzfZvLrq8M719t|WJ{n(Mgn#>-gOIWk(ngZo>&#MJM!nrQ;@BZ zXF4DjqL!!P^2Kn`q6WKy);X@oK~sj3il|g3!qEdT@N3?tHCoK1BB0j{oPLBMUfUCqG z)H(R1AcyaQK9h89NT8s~wkgbkBMX0quDB?+9V)QT4~F4UC8R9THCsbtD8scd8AaSQ zP7waHXp*N$?GDc^&=D2|dt$@uSkOf;OLJ9BJ}u*VTodn&=`VFXG`7k(4x0(Ocs=AL zdqL-zp3R|#h~RXHU-~B;EDV4>S)LG;pkmrQC`@>l4`MwX3?|IsSHS4<7hT$-)VXk3 zJr~NB8Q}Cw9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qh1Ry8zGlgza2yMf*v?HXw6#$#+6Z2@o0qFJ})&!+`=op2bV!#_M*nLD0{P^ zj&^Q&`Ze0;vDHs$|GTrhh`*J0l>Dvv=Lka!CWsF!(#i0Nr>w6e|H6iS3iMZ4AIT9T z%OZ(4mT#rJvlZci$ls_bp}4-TmiROK>xoZ1e42R2i6jnnb8KgW5pQ2K5zn`zlWueC zF{;b8XV84v9i4vME#cBS5(PO}9dzZschD8SCz2tLiCpt|HA;>>&P7P;=0Vv_S3Iq| z(8FBtFgz%pP|*0qg2CfGJTyN^_6(Ih-eIX{xE6z>J!XW0ULHPpy23MT5r?Bsi$rFP zC-7@8X;^15G8>)L+Bs()dSlK4kL;s9lAY>%4;j|ULzs)!wBD78%t_ZagrNS<5f1cM zl5Bur=fE!Xh6cVsC?6!!A;P+6l+gaH7Gv)}-;HorgrcFn=>0vk2ch%@#kyYX{*U`r z{xWIu(Bl!7!bd|QY{W=)CGt2cjy=Ttdf zwqayBR{Bj~U3p%%&E)NZR@=NidMrh_;b?`Ei)Cyz_4$-k{m&{AMz1s9Xb|2_XuiUv z0(bQ|SUwy?;`UP+WmlyPgO=q}HMvL-hk~V41-sYi;J_Fy=*lS1ZC>w=1i+T!P&hqG zkp*KscXxw3GT);=F0dt5H#-B&TZ252>92V%y$tTibmzAt3ARtVYA@TSHO=D(pH3~zX@x5mv*Utq~)xe$r?r;K$A_kFWX zE7U~G^r@RuM~ys;iiBzYzmzcyT9QxU z=NAQGeA6rz3pT~FJZEfy?X7W5)vS(E>qGwF4Z;~fTji6ww^a~kdgu5Nf;$~T<7gQ^ tLVdd+G#>htrAZEb%?h)8+#x(o4U~6iG?rYMkisxI!uNUv!. + */ +package org.mxchange.jcontacts.events.contact.created; + +import org.mxchange.jcontacts.contact.Contact; + +/** + * An interface for observable events being fired when a contact instance has + * been successfully created. This may happen when a contact profile was called. + *

+ * @author Roland Häder + */ +public class CreatedContactEvent implements ObservableCreatedContactEvent { + + /** + * Serial number + */ + private static final long serialVersionUID = 24_138_056_876_716_451L; + + /** + * Contact instance being created + */ + private final Contact createdContact; + + /** + * Constructor with contact instance + *

+ * @param createdContact Contact instance being created by helper + */ + public CreatedContactEvent (final Contact createdContact) { + // Set contact instance + this.createdContact = createdContact; + } + + @Override + public Contact getCreatedContact () { + return this.createdContact; + } + +} diff --git a/src/org/mxchange/jcontacts/events/contact/created/ObservableCreatedContactEvent.java b/src/org/mxchange/jcontacts/events/contact/created/ObservableCreatedContactEvent.java new file mode 100644 index 0000000..c386d68 --- /dev/null +++ b/src/org/mxchange/jcontacts/events/contact/created/ObservableCreatedContactEvent.java @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2017 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jcontacts.events.contact.created; + +import java.io.Serializable; +import org.mxchange.jcontacts.contact.Contact; + +/** + * An interface for observable events being fired when a contact instance has + * been successfully created. This may happen when a contact profile was called. + *

+ * @author Roland Haeder + */ +public interface ObservableCreatedContactEvent extends Serializable { + + /** + * Getter for created contact instance + *

+ * @return Created contact instance + */ + Contact getCreatedContact (); + +} -- 2.39.5