# C# svc service can not accept body fields named "object" or "event"

**URL:** <https://devforum.zoom.us/t/c-svc-service-can-not-accept-body-fields-named-object-or-event/53838>\
**Category:** API and Webhooks\
**Created:** [July 8, 2021, 12:06pm UTC](https://devforum.zoom.us/t/c-svc-service-can-not-accept-body-fields-named-object-or-event/53838 "2021-07-08T12:06:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pelosigianni1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pelosigianni1/32/26117_2.png) [@pelosigianni1](https://devforum.zoom.us/u/pelosigianni1)\
**Post date:** [July 8, 2021, 12:06pm UTC](https://devforum.zoom.us/t/c-svc-service-can-not-accept-body-fields-named-object-or-event/53838/1 "2021-07-08T12:06:44Z")

</div>

Hi,  
I have a problem with the join end webhook event.  
the “event” element in the body and the "object " element, c# they are a basic type.  
So i can not have thoose fields in my class to using it in a body of my post method.  
Can you help me

this the class for the body:

```
public struct Object
{
    public string id { get; set; }
    public string uuid { get; set; }
    public string host_id { get; set; }
    public string topic { get; set; }
    public int type { get; set; }
    public string start_time { get; set; }
    public string timezone { get; set; }
    public int duration { get; set; }
    public Participant partecipant { get; set; }
}

public struct Payload
{
    public string account_id { get; set; }

    public Object _object { get; set; }

```

}  
– In here the compiler give me an error because “event” and “object” are  
Basic types in c# and if i change the name like “event\_” i receive null value in it

```
public class JoinEndEvent
{
    
    public string event { get; set; }

    public long event_ts{ get; set; }
    public Payload payload { get; set; }

    public static explicit operator JoinEndEvent (JToken v)
    {
        throw new NotImplementedException();
    }

}

```

interface is 🙂  
[OperationContract]  
[WebInvoke(Method = “POST”, ResponseFormat = WebMessageFormat.Json,  
UriTemplate = “rsJoinEndEvent”)]  
void rsJoinEndEvent(JoinEndEvent JoinEnd);

and method is:

```
public void rsJoinEndEvent(JoinEndEvent jee)
{

	XmlJeEvent(jee);
}

```

thanks in advance

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 9, 2021, 10:31pm UTC](https://devforum.zoom.us/t/c-svc-service-can-not-accept-body-fields-named-object-or-event/53838/2 "2021-07-09T22:31:32Z")

</div>

Hi @pelosigianni1 ,

Happy to help! This forum has some helpful direction on using c# for listening to webhook events:[Newbie Webhook Basics / Example](https://devforum.zoom.us/t/newbie-webhook-basics-example/45861). Let me know if this helps.

Gianni

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 9, 2021, 8:32am UTC](https://devforum.zoom.us/t/c-svc-service-can-not-accept-body-fields-named-object-or-event/53838/3 "2021-08-09T08:32:25Z")

</div>

Closed on August 9, 2021, 8:32am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
